Created
September 30, 2013 18:30
-
-
Save guiguiboy/6768022 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Enable/Disable phpmyadmin on the server" | |
if [ "$#" -ne 1 ];then | |
echo "Usage pma.sh [up|down]" | |
exit 0 | |
fi | |
if [ "$1" = "up" ];then | |
cp /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf | |
service apache2 reload | |
elif [ "$1" = "down" ];then | |
rm /etc/apache2/conf.d/phpmyadmin.conf | |
service apache2 reload | |
else | |
echo "Usage pma.sh [up|down]" | |
fi | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment