Files
DDNS/release/create-task.sh
T
2019-03-30 14:13:05 +08:00

8 lines
241 B
Bash

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