Add instructions to create missing directories in skel directory
This commit is contained in:
@ -92,6 +92,12 @@ ln -s /etc/systemd/system/hosting-del.timer /etc/systemd/system/multi-user.targe
|
||||
ln -s /etc/systemd/system/hosting.timer /etc/systemd/system/multi-user.target.wants/hosting.timer
|
||||
```
|
||||
|
||||
Add empty directories that should be copied when creating a new user and set permissions correctly:
|
||||
```
|
||||
mkdir /var/www/skel/data /var/www/skel/Maildir /var/www/skel/tmp
|
||||
chmod 700 /var/www/skel/data /var/www/skel/Maildir /var/www/skel/tmp /var/www/skel/www
|
||||
```
|
||||
|
||||
Live demo:
|
||||
----------
|
||||
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user