Skip to content

Commit 17e1947

Browse files
author
Kristan Kenney
committed
Merge branch 'fix-pma-error'
2 parents d8c5746 + 3ab7bb7 commit 17e1947

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

install/hst-install-debian.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,6 +1402,10 @@ if [ "$mysql" = 'yes' ]; then
14021402
mkdir /usr/share/phpmyadmin/tmp
14031403
chmod 777 /usr/share/phpmyadmin/tmp
14041404

1405+
if [ -e /var/lib/phpmyadmin/blowfish_secret.inc.php ]; then
1406+
chmod 0644 /var/lib/phpmyadmin/blowfish_secret.inc.php
1407+
fi
1408+
14051409
# Clear Up
14061410
rm -fr phpMyAdmin-$pma_v-all-languages
14071411
rm -f phpMyAdmin-$pma_v-all-languages.tar.gz

install/hst-install-ubuntu.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,6 +1433,10 @@ if [ "$mysql" = 'yes' ]; then
14331433
# Create temporary folder and change permission
14341434
[ ! -d "/usr/share/phpmyadmin/tmp" ] && mkdir /usr/share/phpmyadmin/tmp
14351435
chmod 777 /usr/share/phpmyadmin/tmp
1436+
1437+
if [ -e /var/lib/phpmyadmin/blowfish_secret.inc.php ]; then
1438+
chmod 0644 /var/lib/phpmyadmin/blowfish_secret.inc.php
1439+
fi
14361440

14371441
# Clear Up
14381442
rm -fr phpMyAdmin-$pma_v-all-languages

install/upgrade/versions/latest.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,9 @@ for user in $($HESTIA/bin/v-list-sys-users plain); do
168168

169169
chown --silent --no-dereference :www-data /home/$user/web/*/public_*html
170170
done
171+
172+
# Fix phpMyAdmin blowfish_secret error message due to incorrect permissions
173+
if [ -e /var/lib/phpmyadmin/blowfish_secret.inc.php ]; then
174+
echo "(*) Updating phpMyAdmin permissions..."
175+
chmod 0644 /var/lib/phpmyadmin/blowfish_secret.inc.php
176+
fi

0 commit comments

Comments
 (0)