Added hardcodded pw

This commit is contained in:
2025-02-27 20:47:36 +01:00
parent cfe1d1a2b6
commit 66a1ce279e
2 changed files with 4 additions and 3 deletions

View File

@@ -8,7 +8,7 @@ fi
# Update package list and install necessary packages
apt-get update -y
apt-get install -y apache2 mysql-server php libapache2-mod-php php-mysqli php-json php-common php-mbstring php-zip php-xml php-gd php-curl php-bz2 php-ldap php-imagick
apt-get install -y php apache2 mysql-server php libapache2-mod-php php-mysqli php-json php-common php-mbstring php-zip php-xml php-gd php-curl php-bz2 php-ldap php-imagick
# Automatically select Apache2 during phpMyAdmin installation (without user intervention)
echo "phpmyadmin phpmyadmin/webserver select apache2" | debconf-set-selections
@@ -20,7 +20,8 @@ DEBIAN_FRONTEND=noninteractive apt-get install -y phpmyadmin
phpmyadmin_password=$(openssl rand -base64 12)
# Set the MySQL root password (if not already set)
mysql_root_password=$(openssl rand -base64 12)
#mysql_root_password=$(openssl rand -base64 12)
mysql_root_password="forgotten"
# Set MySQL root password if not already set
echo "Setting MySQL root password"