Fix error in older MariaDB/MySQL versions

This commit is contained in:
Daniel Winzen
2017-05-20 20:42:03 +02:00
parent 4905e9bf2d
commit b7cefd1f5e

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 IF EXISTS '$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