Files
DDNS/task.sh
T
2018-07-29 08:40:03 +00:00

8 lines
242 B
Bash
Executable File

#!/usr/bin/env bash
RUN_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )";
CMD="\"$RUN_DIR/run.py\" -c \"$RUN_DIR/config.json\" >> \"$RUN_DIR/run.log\""
echo "*/5 * * * * root '$CMD'" > /etc/cron.d/ddns;
/etc/init.d/cron reload;