We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/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:~#
The text was updated successfully, but these errors were encountered:
Hi @TrystanLea @glynhudson ,
Can we close this issue as @borpin resolved this under #151
Sorry, something went wrong.
No branches or pull requests
/opt/openenergymonitor/EmonScripts/update/service-runner-update.sh: line 24: [: : integer expression expected
Starting update via service-runner-update.sh (v3.0) >
returns nothing:
The text was updated successfully, but these errors were encountered: