Skip to content

Instantly share code, notes, and snippets.

@liverbool
Created March 2, 2014 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liverbool/9309791 to your computer and use it in GitHub Desktop.
Save liverbool/9309791 to your computer and use it in GitHub Desktop.
ubuntu 13 phpmyadmin up/down
#!/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