Created
March 2, 2014 17:10
-
-
Save liverbool/9309791 to your computer and use it in GitHub Desktop.
ubuntu 13 phpmyadmin up/down
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 | |
currentdir=`echo $PWD` | |
if [ "$1" = "up" ];then | |
cd /etc/apache2/conf-enabled/ | |
ln -s -T /etc/apache2/conf-available/phpmyadmin.conf phpmyadmin.conf | |
service apache2 reload | |
else if [ "$1" = "down" ];then | |
rm /etc/apache2/conf-enabled/phpmyadmin.conf | |
service apache2 reload | |
else | |
rm /etc/apache2/conf-enabled/phpmyadmin.conf | |
service apache2 reload | |
fi | |
fi | |
cd `echo "$currentdir"` | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment