Add instructions to create missing directories in skel directory

This commit is contained in:
Daniel Winzen
2017-05-29 13:15:16 +02:00
parent b7cefd1f5e
commit daecda2500
2 changed files with 7 additions and 1 deletions

View File

@ -148,7 +148,7 @@ foreach($onions as $onion){
//delete all log files
exec("rm -f /var/log/nginx/*$onion[0].onion.log*");
//delete user from database
$db->exec("DROP USER '$onion[0].onion'@'localhost'");
$db->exec("DROP USER '$onion[0].onion'@'localhost';");
$db->exec("DROP DATABASE IF EXISTS `$onion[0]`;");
$db->exec('FLUSH PRIVILEGES;');
//delete user from user database