add noninteractive option

This commit is contained in:
Zsolt Ero
2024-09-12 11:44:23 +02:00
parent 33cb06c7a1
commit f5a7b00256
4 changed files with 20 additions and 13 deletions

View File

@@ -20,7 +20,7 @@ def auto_mount():
if not config.runs_dir.exists():
sys.exit(' download-btrfs needs to be run first')
clean_up_mounts(config.mnt_dir)
# clean_up_mounts(config.mnt_dir) # disabling, as it can be in use before the nginx sync works
create_fstab()
print(' running mount -a')

View File

@@ -3,7 +3,10 @@ CMD="sudo /data/ofm/venv/bin/python -u /data/ofm/tile_gen/bin/tile_gen.py"
LOG_DIR=/data/ofm/tile_gen/logs
# every day at 2:10, make a monaco run
10 2 * * * ofm $CMD make-tiles monaco --upload >> $LOG_DIR/monaco-make-tiles.log 2>&1
#10 2 * * * ofm $CMD make-tiles monaco --upload >> $LOG_DIR/monaco-make-tiles.log 2>&1
# debug every 15 minutes
*/15 * * * * ofm $CMD make-tiles monaco --upload >> $LOG_DIR/monaco-make-tiles.log 2>&1
# every minute, set monaco to latest
* * * * * ofm $CMD set-version monaco >> $LOG_DIR/monaco-set-version.log 2>&1