mailserver now run as nginx user. should fix #37
This commit is contained in:
parent
e813a5e991
commit
688a52ce89
|
@ -57,10 +57,7 @@ if [ "$DELETE_OLDER_THAN_DAYS" != "" ]; then
|
||||||
echo " [i] Setting up cleanup time to $DELETE_OLDER_THAN_DAYS days"
|
echo " [i] Setting up cleanup time to $DELETE_OLDER_THAN_DAYS days"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd /var/www/opentrashmail/python
|
chown -R nginx:nginx /var/www/opentrashmail/data
|
||||||
|
|
||||||
echo ' [+] Starting Mailserver'
|
echo ' [+] Starting Mailserver'
|
||||||
python mailserver.py
|
su - nginx -s /bin/ash -c 'cd /var/www/opentrashmail/python;python mailserver.py'
|
||||||
#nohup python /var/www/opentrashmail/python/mailserver.py &
|
|
||||||
|
|
||||||
#tail -n 1 -f /var/log/nginx/*.log
|
|
||||||
|
|
Loading…
Reference in a new issue