Compare commits
1 Commits
8dee89a0d0
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| dd5a1de1c7 |
@@ -12,6 +12,11 @@ exec 1> >(prepend "[cronjob.sh] ")
|
|||||||
LOCK_DIR=/tmp/xteve/.cronjob.lock
|
LOCK_DIR=/tmp/xteve/.cronjob.lock
|
||||||
mkdir -p /tmp/xteve
|
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
|
if ! mkdir "$LOCK_DIR" 2>/dev/null; then
|
||||||
echo "Another cronjob instance is already running, exiting."
|
echo "Another cronjob instance is already running, exiting."
|
||||||
exit 0
|
exit 0
|
||||||
@@ -155,7 +160,7 @@ fi
|
|||||||
|
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
if [ "${bootstrap_only:-no}" = "yes" ]; then
|
if [ "$BOOTSTRAP_ONLY" = "yes" ]; then
|
||||||
echo "Bootstrap mode enabled, skipping xTeVe/Emby/Plex/Channels API updates."
|
echo "Bootstrap mode enabled, skipping xTeVe/Emby/Plex/Channels API updates."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
bootstrap_only=yes /cronjob.sh
|
/cronjob.sh --bootstrap-only
|
||||||
|
|||||||
Reference in New Issue
Block a user