projects
/
spamassassin-cn.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ispravak greske u postinstu
[spamassassin-cn.git]
/
debian
/
postinst
diff --git
a/debian/postinst
b/debian/postinst
index
dae4cb2
..
fb6e041
100755
(executable)
--- a/
debian/postinst
+++ b/
debian/postinst
@@
-59,7
+59,7
@@
db_stop || true
if [ "$run_as_user" = "non-root" ]; then
if ! grep -q '^OPTIONS=".*username=spamd"' \
/etc/default/spamassassin; then
if [ "$run_as_user" = "non-root" ]; then
if ! grep -q '^OPTIONS=".*username=spamd"' \
/etc/default/spamassassin; then
- service stop spamassassin
+ service spamassassin stop
rstart=yes
fi
rstart=yes
fi
@@
-87,7
+87,7
@@
if [ "$run_as_user" = "non-root" ]; then
elif [ "$run_as_user" = "root" ]; then
if grep -q '^OPTIONS=".*username=spamd"' \
/etc/default/spamassassin; then
elif [ "$run_as_user" = "root" ]; then
if grep -q '^OPTIONS=".*username=spamd"' \
/etc/default/spamassassin; then
- service stop spamassassin
+ service spamassassin stop
restart=yes
fi
restart=yes
fi
@@
-400,12
+400,12
@@
echo "CN: SpamAssassin updates are now logged at /var/log/sa-update.log"
# restart the spamasassin
if [ "x$restart" = "xyes" ]; then
pkill -f /usr/sbin/spamd || true
# restart the spamasassin
if [ "x$restart" = "xyes" ]; then
pkill -f /usr/sbin/spamd || true
- service restart spamassassin
+ service spamassassin restart
fi
# restart the amavis
if [ "x$restart" = "xyes" -a -x /etc/init.d/amavis ]; then
fi
# restart the amavis
if [ "x$restart" = "xyes" -a -x /etc/init.d/amavis ]; then
- service restart amavis
+ service amavis restart
fi
# dh_installdeb will replace this with shell code automatically
fi
# dh_installdeb will replace this with shell code automatically