switched from su to sudo

This commit is contained in:
Matthew Saunders Brown 2021-03-22 14:27:19 -07:00
parent 7a34f22188
commit d8eaaaf47a

View File

@ -2,7 +2,7 @@
# any script that includes this conf file will force user to be vmail # any script that includes this conf file will force user to be vmail
if [ "$USER" != "vmail" ]; then if [ "$USER" != "vmail" ]; then
exec su --shell /bin/bash "vmail" "$0" -- "$@" exec sudo -u vmail $0 $@
fi fi
# constants # constants