Skip to content

Commit

Permalink
update linux task
Browse files Browse the repository at this point in the history
  • Loading branch information
NewFuture committed Jul 29, 2018
1 parent 7626f6c commit 84d6f4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion task.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/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'"
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;

0 comments on commit 84d6f4a

Please sign in to comment.