git://git.onelab.eu
/
myplc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5d6ee9d
)
only add apache to trusted-users file if its not already in there
author
Marc Fiuczynski
<mef@cs.princeton.edu>
Fri, 4 Dec 2009 03:26:25 +0000
(
03:26
+0000)
committer
Marc Fiuczynski
<mef@cs.princeton.edu>
Fri, 4 Dec 2009 03:26:25 +0000
(
03:26
+0000)
plc.d/mail
patch
|
blob
|
history
diff --git
a/plc.d/mail
b/plc.d/mail
index
fba0973
..
01441b7
100755
(executable)
--- a/
plc.d/mail
+++ b/
plc.d/mail
@@
-28,7
+28,10
@@
case "$1" in
# Add apache to list of users that can send mail as others
# without a warning, so that the API can send out mail.
- echo "apache" >/etc/mail/trusted-users
+ count=$(grep ^apache /etc/mail/trusted-users|wc -l)
+ if [ $count -eq 0 ] ; then
+ echo "apache" >>/etc/mail/trusted-users
+ fi
(exec 3>&- 4>&- ; service sendmail start)
check