Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- currentdir=`echo $PWD`
- if [ "$1" = "up" ];then
- cd /etc/apache2/conf.d/
- ln -s -T /etc/phpmyadmin/apache.conf phpmyadmin.conf
- service apache2 reload
- else if [ "$1" = "down" ];then
- rm /etc/apache2/conf.d/phpmyadmin.conf
- service apache2 reload
- else
- rm /etc/apache2/conf.d/phpmyadmin.conf
- service apache2 reload
- fi
- fi
- cd `echo "$currentdir"`
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement