mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-12-20 23:41:20 +00:00
No buffering for log
This commit is contained in:
parent
6f30f90b64
commit
6b0b6e587c
1 changed files with 3 additions and 4 deletions
|
@ -75,14 +75,13 @@ step("Setup update cron jobs")
|
||||||
|
|
||||||
user_update_script = script_dir / "user_update.py"
|
user_update_script = script_dir / "user_update.py"
|
||||||
user_update_log = logs_dir / "user_update.log"
|
user_update_log = logs_dir / "user_update.log"
|
||||||
|
# Every Sunday at 04:00
|
||||||
|
run(f'echo "0 4 * * 0 admin python3 -u {user_update_script} &>> {user_update_log}" | sudo tee -a /etc/crontab')
|
||||||
|
|
||||||
root_update_script = script_dir / "root_update.py"
|
root_update_script = script_dir / "root_update.py"
|
||||||
root_update_log = logs_dir / "root_update.log"
|
root_update_log = logs_dir / "root_update.log"
|
||||||
|
|
||||||
# Every Sunday at 04:00
|
|
||||||
run(f'echo "0 4 * * 0 admin python3 {user_update_script} &>> {user_update_log}" | sudo tee -a /etc/crontab')
|
|
||||||
# Every Sunday at 04:15
|
# Every Sunday at 04:15
|
||||||
run(f'echo "15 4 * * 0 root python3 {root_update_script} &>> {root_update_log}" | sudo tee -a /etc/crontab')
|
run(f'echo "15 4 * * 0 root python3 -u {root_update_script} &>> {root_update_log}" | sudo tee -a /etc/crontab')
|
||||||
|
|
||||||
step("Install latest Poetry packages")
|
step("Install latest Poetry packages")
|
||||||
poetry_install_latest(script_dir)
|
poetry_install_latest(script_dir)
|
||||||
|
|
Loading…
Reference in a new issue