Skip to content

Commit

Permalink
Wrapped CRON in shell script to switch user
Browse files Browse the repository at this point in the history
  • Loading branch information
draescherl committed Oct 7, 2022
1 parent d249155 commit 761844a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion clevercloud/cron.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[
"*/5 * * * * /home/bas/venv/bin/python3 $ROOT/scrap.py"
"*/5 * * * * $ROOT/crons/scrap.sh"
]
4 changes: 4 additions & 0 deletions crons/scrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#! /bin/bash -l

su bas
/home/bas/venv/bin/python3 $ROOT/scrap.py

0 comments on commit 761844a

Please sign in to comment.