wip
This commit is contained in:
@@ -10,4 +10,4 @@ cd /data/openpilot/logs
|
||||
rm -f watcher.log.gz
|
||||
ls watcher.log && gzip watcher.log
|
||||
|
||||
screen -dmS "watcher" "bash /data/openpilot/shell/watcher_run_loop.sh"
|
||||
screen -dmS "watcher" /data/openpilot/shell/watcher_run_loop.sh
|
||||
|
||||
@@ -3,11 +3,10 @@ cd /data/openpilot/shell
|
||||
while true
|
||||
do
|
||||
|
||||
nodejs watcher.js
|
||||
nodejs watcher.js
|
||||
|
||||
|
||||
# Get free space on /data in GB
|
||||
free_space=$(df -BG /data | tail -n 1 | awk '{print $4}' | sed 's/G//')
|
||||
# Get free space on /data in GB
|
||||
free_space=$(df -BG /data | tail -n 1 | awk '{print $4}' | sed 's/G//')
|
||||
|
||||
# Check if free space is less than 10GB
|
||||
if [ "$free_space" -lt 10 ]; then
|
||||
|
||||
Reference in New Issue
Block a user