This commit is contained in:
Thomas Peterson 2023-07-20 12:02:47 +02:00
parent 81affe09e6
commit 6f49cd6907
2 changed files with 5 additions and 8 deletions

View File

@ -3,3 +3,5 @@
declare -p > /container.env
/usr/bin/start-cron.sh
rsyslogd -n & cron -f & tail -f /var/log/syslog /var/log/cron.log

View File

@ -1,13 +1,8 @@
#!/bin/bash
# start-cron.sh
rsyslogd
cron
touch /var/log/cron.log
touch /var/log/syslog.log
chmod -R 0777 /var/log/cron.log
chmod -R 0777 /var/log/syslog.log
rm /data/www/new/var/cache/*
rm /data/www/new/var/log/*
rm -R /data/www/new/var/cache/*
rm -R /data/www/new/var/log/*
chmod -R 0777 /data/www/new/var/cache
chmod -R 0777 /data/www/new/var/log
tail -F /var/log/syslog /var/log/cron.log
chmod 0777 /var/log/cron.log