mirror of
https://github.com/TheBinaryNinja/tvapp2.git
synced 2026-06-04 06:25:41 -04:00
Initial upload
This commit is contained in:
31
run.sh
Normal file
31
run.sh
Normal file
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
# #
|
||||
# Disable, otherwise cron asterisks will be converted to file paths.
|
||||
# #
|
||||
|
||||
set -f
|
||||
|
||||
# #
|
||||
# For details see man crontabs
|
||||
# Example of job definition:
|
||||
# .---------------- minute (0 - 59)
|
||||
# | .------------- hour (0 - 23)
|
||||
# | | .---------- day of month (1 - 31)
|
||||
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
|
||||
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
|
||||
# | | | | |
|
||||
# * * * * *
|
||||
# #
|
||||
|
||||
ARG_CRON_TIME=$(echo ${REFRESH})
|
||||
|
||||
if [ -z "${ARG_CRON_TIME}" ]; then
|
||||
ARG_CRON_TIME="0/60 * * * *"
|
||||
fi
|
||||
|
||||
echo -e " Config : Setting task to run ${ARG_CRON_TIME}"
|
||||
echo "${ARG_CRON_TIME} sh /download.sh" > /crontab.conf
|
||||
crontab /crontab.conf
|
||||
set +f
|
||||
Reference in New Issue
Block a user