mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
regenconf/dovecot: make sure the home folder for vmail user is created to prevent a warning
This commit is contained in:
parent
c9f2bb7911
commit
862e66c17e
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ do_post_regen() {
|
||||||
|
|
||||||
# create vmail user
|
# create vmail user
|
||||||
id vmail >/dev/null 2>&1 \
|
id vmail >/dev/null 2>&1 \
|
||||||
|| adduser --system --ingroup mail --uid 500 vmail --home /var/vmail --no-create-home
|
|| { mkdir -p /var/vmail; adduser --system --ingroup mail --uid 500 vmail --home /var/vmail --no-create-home; }
|
||||||
|
|
||||||
# Delete legacy home for vmail that existed in the past but was empty, poluting /home/
|
# Delete legacy home for vmail that existed in the past but was empty, poluting /home/
|
||||||
[ ! -e /home/vmail ] || rmdir --ignore-fail-on-non-empty /home/vmail
|
[ ! -e /home/vmail ] || rmdir --ignore-fail-on-non-empty /home/vmail
|
||||||
|
|
Loading…
Add table
Reference in a new issue