Skip to content

Commit

Permalink
regenconf/dovecot: make sure the home folder for vmail user is create…
Browse files Browse the repository at this point in the history
…d to prevent a warning
  • Loading branch information
alexAubin committed Jan 14, 2024
1 parent c9f2bb7 commit 862e66c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/conf_regen/25-dovecot
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ do_post_regen() {

# create vmail user
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/
[ ! -e /home/vmail ] || rmdir --ignore-fail-on-non-empty /home/vmail
Expand Down

0 comments on commit 862e66c

Please sign in to comment.