Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
2875fc8334
|
|||
|
49e777ece1
|
@@ -1,17 +1,14 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
set +e
|
||||||
|
|
||||||
# Create crontab in a writable location and set proper permissions
|
# Create crontab in a writable location and set proper permissions
|
||||||
mkdir -p /tmp/crontabs
|
mkdir -p /tmp/crontabs
|
||||||
echo "${CRONTAB:-"0 * * * *"} /scripts/backup.sh >> /proc/1/fd/1 2>&1" > /tmp/crontabs/root
|
echo "${CRONTAB:-"0 * * * *"} /scripts/backup.sh >> /proc/1/fd/1 2>&1" > /tmp/crontabs/root
|
||||||
chmod 644 /tmp/crontabs/root
|
chmod 644 /tmp/crontabs/root
|
||||||
|
|
||||||
# Run initial backup
|
# Run initial backup
|
||||||
# /scripts/backup.sh
|
/scripts/backup.sh
|
||||||
|
|
||||||
# Start crond with debug output
|
|
||||||
echo "Starting crond with config:"
|
|
||||||
cat /tmp/crontabs/root
|
|
||||||
echo "---"
|
|
||||||
|
|
||||||
# Start crond in foreground with debug output
|
# Start crond in foreground with debug output
|
||||||
exec crond -f -c /tmp/crontabs -d 8
|
exec crond -f -c /tmp/crontabs -d 0
|
||||||
|
|||||||
Reference in New Issue
Block a user