Open nobless opened 3 years ago
/opt/openenergymonitor/EmonScripts/update/service-runner-update.sh: line 24: [: : integer expression expected Starting update via service-runner-update.sh (v3.0) >
# Find largest log file and remove varlog_available=$(df | awk '$NF == "/var/log" { print $4 }') if [ "$varlog_available" -lt "1024" ]; then largest_log_file=$(sudo find /var/log -type f -printf "%s\t%p\n" | sort -n | tail -1 | cut -f 2) sudo truncate -s 0 $largest_log_file echo "$largest_log_file truncated to make room for update log" fi
returns nothing:
root@ubuntu:~# df | awk '$NF == "/var/log" { print $4 }' root@ubuntu:~#
Hi @TrystanLea @glynhudson ,
Can we close this issue as @borpin resolved this under https://github.com/openenergymonitor/EmonScripts/issues/151
/opt/openenergymonitor/EmonScripts/update/service-runner-update.sh: line 24: [: : integer expression expected Starting update via service-runner-update.sh (v3.0) >
returns nothing: