Page MenuHomeDevCentral

run
No OneTemporary

#!/bin/bash -e
chown mail /var/spool/nullmailer
# If directory is empty, we restore it from our copy of initial files
[[ $(ls -A /var/spool/nullmailer | grep -v placeholder) ]] || cp -a /var/spool/nullmailer.orig/* /var/spool/nullmailer/
if [ ! -p /var/spool/nullmailer/trigger ]; then
rm -f /var/spool/nullmailer/trigger
mkfifo /var/spool/nullmailer/trigger
fi
chown mail:root /var/spool/nullmailer/trigger
chmod 0622 /var/spool/nullmailer/trigger
if [ "$ADMINADDR" ]; then
echo "$ADMINADDR" > /etc/nullmailer/adminaddr
fi
if [ "$REMOTES" ]; then
echo "$REMOTES" > /etc/nullmailer/remotes
fi
exec chpst -u mail:mail /usr/sbin/nullmailer-send 2>&1

File Metadata

Mime Type
text/x-shellscript
Expires
Mon, Nov 25, 07:57 (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259793
Default Alt Text
run (670 B)

Event Timeline