Compare commits
3 Commits
0ea2271823
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| dd5a1de1c7 | |||
| 8dee89a0d0 | |||
| ef148d73c5 |
@@ -12,6 +12,11 @@ exec 1> >(prepend "[cronjob.sh] ")
|
||||
LOCK_DIR=/tmp/xteve/.cronjob.lock
|
||||
mkdir -p /tmp/xteve
|
||||
|
||||
BOOTSTRAP_ONLY="${bootstrap_only:-no}"
|
||||
if [ "${1:-}" = "--bootstrap-only" ]; then
|
||||
BOOTSTRAP_ONLY="yes"
|
||||
fi
|
||||
|
||||
if ! mkdir "$LOCK_DIR" 2>/dev/null; then
|
||||
echo "Another cronjob instance is already running, exiting."
|
||||
exit 0
|
||||
@@ -155,6 +160,11 @@ fi
|
||||
|
||||
sleep 1
|
||||
|
||||
if [ "$BOOTSTRAP_ONLY" = "yes" ]; then
|
||||
echo "Bootstrap mode enabled, skipping xTeVe/Emby/Plex/Channels API updates."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# update xteve via API
|
||||
if [ "$use_xTeveAPI" = "yes" ]; then
|
||||
if xteve_internal_update_due_now; then
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
/cronjob.sh
|
||||
|
||||
/cronjob.sh --bootstrap-only
|
||||
|
||||
@@ -6,7 +6,7 @@ if [ -f "$CRON_FILE" ]; then
|
||||
. $CRON_FILE
|
||||
else
|
||||
echo "[crond-setup] No cron definition found..."
|
||||
echo "[crond-setup] By default, cronjob will run every night at midnight unless cron file is configured."
|
||||
echo "[crond-setup] By default, cronjob will run hourly at minute 5 unless cron file is configured."
|
||||
fi
|
||||
|
||||
crond -f
|
||||
crond -f
|
||||
|
||||
Reference in New Issue
Block a user