Commit 12177aae authored by Marco Mariani's avatar Marco Mariani

qshape: removed hardcoded checks for zimbra user; removed sudo call

parent 0ad75a1e
......@@ -16,10 +16,11 @@
source /opt/zimbra/bin/zmshutil || exit 1
zmsetvars
ID=$(id -un)
if [ x"$ID" != "xzimbra" ]; then
echo "$0 must be run as user zimbra."
exit 1
fi
# XXX SLAPOS must run as current user
#ID=$(id -un)
#if [ x"$ID" != "xzimbra" ]; then
# echo "$0 must be run as user zimbra."
# exit 1
#fi
sudo /opt/zimbra/postfix/sbin/qshape.pl "$@"
/opt/zimbra/postfix/sbin/qshape.pl "$@"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment