X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=blobdiff_plain;f=system-status;h=ddb5b738c28db81d1f4320ad10200de8b4f3f773;hp=c58d9cea7f6eb3efceae04e08d85c1ce386bfa22;hb=a5d4a2af585b0eed9c613f3e1557b6c9c760d3de;hpb=b3e6791bc8673b042e7772516be4de0fc10c0e92 diff --git a/system-status b/system-status index c58d9ce..ddb5b73 100755 --- a/system-status +++ b/system-status @@ -45,7 +45,10 @@ write-status() { chars+=("MAILPING!") fi - qlen=$(/usr/sbin/exiqgrep -o 60 -c -b | awk '{print $1}') + if ! qlen=$(/usr/sbin/exiqgrep -o 60 -c -b | awk '{print $1}'); then + # early in install process, we dont have permission yet for exiqgrep + qlen=$(sudo /usr/sbin/exiqgrep -o 60 -c -b | awk '{print $1}') + fi if ((qlen)); then chars+=("q $qlen") fi