From 741f38fe2f8f52b4333a7a3ff926b11e3cc62b1f Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 9 Oct 2024 06:48:53 -0400 Subject: [PATCH] Update mysql-install.sh Create exactly 32 characters of Base64 output --- install/mysql-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/mysql-install.sh b/install/mysql-install.sh index 93adda8f..3ee3ba2f 100644 --- a/install/mysql-install.sh +++ b/install/mysql-install.sh @@ -61,7 +61,7 @@ if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then mkdir -p /var/www/html/phpMyAdmin $STD tar xvf phpMyAdmin-5.2.1-all-languages.tar.gz --strip-components=1 -C /var/www/html/phpMyAdmin cp /var/www/html/phpMyAdmin/config.sample.inc.php /var/www/html/phpMyAdmin/config.inc.php - SECRET=$(openssl rand -base64 32) + SECRET=$(openssl rand -base64 24) sed -i "s#\$cfg\['blowfish_secret'\] = '';#\$cfg['blowfish_secret'] = '${SECRET}';#" /var/www/html/phpMyAdmin/config.inc.php chmod 660 /var/www/html/phpMyAdmin/config.inc.php chown -R www-data:www-data /var/www/html/phpMyAdmin