Advertisement
funkrusha

enable-disable-phpmyadmin

Feb 1st, 2015
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.39 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. currentdir=`echo $PWD`
  4.  
  5. if [ "$1" = "up" ];then
  6.   cd /etc/apache2/conf.d/
  7.   ln -s -T /etc/phpmyadmin/apache.conf phpmyadmin.conf
  8.   service apache2 reload
  9. else if [ "$1" = "down" ];then
  10.   rm /etc/apache2/conf.d/phpmyadmin.conf
  11.   service apache2 reload
  12.  
  13.   else
  14.     rm /etc/apache2/conf.d/phpmyadmin.conf
  15.     service apache2 reload
  16.   fi
  17. fi
  18.  
  19. cd `echo "$currentdir"`
  20.  
  21. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement