From 46635251ef3e7a3d8002c9abc4c2dd35b8b95685 Mon Sep 17 00:00:00 2001 From: azerttyu Date: Sat, 7 Oct 2017 15:44:47 +0200 Subject: [PATCH] Solve #139 : Allow standard phpmyadin connection on alternc-sql path * Panel is run as alterncpanel and phpmyadmin configuration must be readable by this user --- install/alternc.install | 1 + jessie/alternc.install | 1 + 2 files changed, 2 insertions(+) diff --git a/install/alternc.install b/install/alternc.install index b9691b0d..f9c8d4c0 100644 --- a/install/alternc.install +++ b/install/alternc.install @@ -627,6 +627,7 @@ done # Fix some perms # Fix phpmyadmin import trac#1557 test -d "/var/lib/phpmyadmin/tmp" && dpkg-statoverride --update --add www-data alterncpanel 0775 "/var/lib/phpmyadmin/tmp" 2>/dev/null || true +test -d "/etc/phpmyadmin/config-db.php" && dpkg-statoverride --update --add www-data alterncpanel 0644 "/etc/phpmyadmin/config-db.php" 2>/dev/null || true # hook run-parts --arg=end /usr/lib/alternc/install.d diff --git a/jessie/alternc.install b/jessie/alternc.install index 15af4f07..3aff0f1d 100644 --- a/jessie/alternc.install +++ b/jessie/alternc.install @@ -639,6 +639,7 @@ test -d "/var/lib/phpmyadmin/tmp" && dpkg-statoverride --update --add www-data a # hook run-parts --arg=end /usr/lib/alternc/install.d +test -d "/etc/phpmyadmin/config-db.php" && dpkg-statoverride --update --add www-data alterncpanel 0644 "/etc/phpmyadmin/config-db.php" 2>/dev/null || true # Unlock jobs ! unlock_jobs