From ec40338c972421f1487d1d8ee6380f20f4e5942e Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Wed, 2 Sep 2020 11:26:24 +0000 Subject: [PATCH] Update 'Scripts/toggles/toggle-PhpMyAdmin_APACHE.sh' --- Scripts/toggles/toggle-PhpMyAdmin_APACHE.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/toggles/toggle-PhpMyAdmin_APACHE.sh b/Scripts/toggles/toggle-PhpMyAdmin_APACHE.sh index f2d8259..88f8fbc 100644 --- a/Scripts/toggles/toggle-PhpMyAdmin_APACHE.sh +++ b/Scripts/toggles/toggle-PhpMyAdmin_APACHE.sh @@ -21,12 +21,12 @@ if [ -n "$1" ]; then echo "Disable PhpMyadmin" sed -i '/PhpMA=/c\PhpMA=0' /etc/ICTM/toggle.conf sed -i --follow-symlinks '/#enables\/disables PHPMyadmin/!b;n;cdeny from all' /etc/apache2/sites-enabled/010-Backend.conf - systemctl reload nginx + systemctl reload apache2 elif [[ "$1" = "-e" && "$PhpMA" != 1 ]]; then echo "Enable PhpMyadmin" sed -i '/PhpMA=/c\PhpMA=1' /etc/ICTM/toggle.conf sed -i --follow-symlinks '/#enables\/disables PHPMyadmin/!b;n;c#deny from all' /etc/apache2/sites-enabled/010-Backend.conf - systemctl reload nginx + systemctl reload apache2 elif [[ "$1" = "-h" ]]; then usage else