Move account folder creation into cron.php

This commit is contained in:
Daniel Winzen
2018-07-14 10:41:44 +02:00
parent f43e699b91
commit 1d157473e6
2 changed files with 15 additions and 10 deletions

View File

@ -15,7 +15,7 @@ apt-get purge apache2* resolvconf
If you are on Ubuntu, add the following PPA:
```
LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php && apt-get update
LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
```
On debian stable this may be worth a look: https://deb.sury.org/
@ -139,11 +139,6 @@ Enable systemd timers to regularly run various managing tasks:
systemctl enable hosting-del.timer && systemctl enable hosting.timer
```
Add empty directories that should be copied when creating a new user and set permissions correctly:
```
for dir in data logs Maildir tmp .ssh; do(mkdir /var/www/skel/$dir && chmod 750 /var/www/skel/$dir); done
```
Final step is to reboot wait about 5 minutes for all services to start and check if everything is working by creating a test account.
Live demo: