Parcourir la source

Fix phpMyAdmin blowfish_secret error due to incorrect file permissions

Fixes #754
Kristan Kenney il y a 5 ans
Parent
commit
3ab7bb7d3e

+ 4 - 0
install/hst-install-debian.sh

@@ -1402,6 +1402,10 @@ if [ "$mysql" = 'yes' ]; then
     mkdir /usr/share/phpmyadmin/tmp
     chmod 777 /usr/share/phpmyadmin/tmp
 
+    if [ -e /var/lib/phpmyadmin/blowfish_secret.inc.php ]; then
+        chmod 0644 /var/lib/phpmyadmin/blowfish_secret.inc.php
+    fi
+    
     # Clear Up
     rm -fr phpMyAdmin-$pma_v-all-languages
     rm -f phpMyAdmin-$pma_v-all-languages.tar.gz

+ 4 - 0
install/hst-install-ubuntu.sh

@@ -1433,6 +1433,10 @@ if [ "$mysql" = 'yes' ]; then
     # Create temporary folder and change permission
     [ ! -d "/usr/share/phpmyadmin/tmp" ] && mkdir /usr/share/phpmyadmin/tmp
     chmod 777 /usr/share/phpmyadmin/tmp
+    
+    if [ -e /var/lib/phpmyadmin/blowfish_secret.inc.php ]; then
+        chmod 0644 /var/lib/phpmyadmin/blowfish_secret.inc.php
+    fi
 
     # Clear Up
     rm -fr phpMyAdmin-$pma_v-all-languages

+ 6 - 0
install/upgrade/versions/latest.sh

@@ -168,3 +168,9 @@ for user in $($HESTIA/bin/v-list-sys-users plain); do
 
     chown --silent --no-dereference :www-data /home/$user/web/*/public_*html
 done
+
+# Fix phpMyAdmin blowfish_secret error message due to incorrect permissions
+if [ -e /var/lib/phpmyadmin/blowfish_secret.inc.php ]; then
+    echo "(*) Updating phpMyAdmin permissions..."
+    chmod 0644 /var/lib/phpmyadmin/blowfish_secret.inc.php
+fi