mailserver now run as nginx user. should fix #37

This commit is contained in:
Christian Haschek 2022-03-25 22:30:13 +01:00
parent e813a5e991
commit 688a52ce89

View file

@ -57,10 +57,7 @@ if [ "$DELETE_OLDER_THAN_DAYS" != "" ]; then
echo " [i] Setting up cleanup time to $DELETE_OLDER_THAN_DAYS days"
fi
cd /var/www/opentrashmail/python
chown -R nginx:nginx /var/www/opentrashmail/data
echo ' [+] Starting Mailserver'
python mailserver.py
#nohup python /var/www/opentrashmail/python/mailserver.py &
#tail -n 1 -f /var/log/nginx/*.log
su - nginx -s /bin/ash -c 'cd /var/www/opentrashmail/python;python mailserver.py'