su to vmail user
This commit is contained in:
parent
e54fcfdab1
commit
4364e47606
|
@ -1,5 +1,10 @@
|
||||||
# vmail configs
|
# vmail configs
|
||||||
|
|
||||||
|
# any script that includes this conf file will force user to be vmail
|
||||||
|
if [ "$USER" != "vmail" ]; then
|
||||||
|
exec su --shell /bin/bash "vmail" "$0" -- "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
# constants
|
# constants
|
||||||
|
|
||||||
readonly MYSQL_CONNECTION_INFO_FILE=/usr/local/etc/vmail-db-info.conf
|
readonly MYSQL_CONNECTION_INFO_FILE=/usr/local/etc/vmail-db-info.conf
|
||||||
|
@ -55,4 +60,5 @@ function vmail::yesno() {
|
||||||
esac
|
esac
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user