Created
March 17, 2016 12:19
-
-
Save valumar/55f8a02786cf48468a5b to your computer and use it in GitHub Desktop.
Revisions
-
bezumkin revised this gist
Jul 22, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ #!/bin/bash ROOTPASS='password' echo "Enter username to delete:" read USERNAME -
bezumkin revised this gist
Apr 17, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ #!/bin/bash ROOTPASS="password" -
bezumkin revised this gist
Mar 26, 2012 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -10,6 +10,7 @@ mysql -uroot --password=$ROOTPASS -e "DROP DATABASE $USERNAME" rm -f /etc/nginx/sites-enabled/$USERNAME.conf rm -f /etc/nginx/sites-available/$USERNAME.conf rm -f /etc/php5/fpm/pool.d/$USERNAME.conf find /var/log/nginx/ -type f -name "$USERNAME-*" -exec rm '{}' \; service nginx reload service php5-fpm reload -
bezumkin renamed this gist
Mar 24, 2012 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
bezumkin revised this gist
Mar 24, 2012 . 2 changed files with 17 additions and 11 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ !/bin/bash ROOTPASS="password" echo "Enter username to delete:" read USERNAME mysql -uroot --password=$ROOTPASS -e "DROP USER $USERNAME@localhost" mysql -uroot --password=$ROOTPASS -e "DROP DATABASE $USERNAME" rm -f /etc/nginx/sites-enabled/$USERNAME.conf rm -f /etc/nginx/sites-available/$USERNAME.conf rm -f /etc/php5/fpm/pool.d/$USERNAME.conf service nginx reload service php5-fpm reload userdel -rf $USERNAME This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,11 +0,0 @@ -
NoPizzaNoGlory created this gist
Feb 8, 2012 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ #!/bin/bash source modx.cfg echo "Enter username to delete:" read USERNAME mysql -uroot --password=$MYSQLPASS -e "DROP USER $USERNAME@localhost" mysql -uroot --password=$MYSQLPASS -e "DROP DATABASE $USERNAME" rm -f /etc/apache2/sites-enabled/$USERNAME.conf userdel -rf $USERNAME /etc/init.d/apache2 reload