Permalink
Browse files

Fix break (should be return) and clean up log

  • Loading branch information...
NEMS Linux
NEMS Linux committed Sep 4, 2018
1 parent 5508050 commit ee8d381659cac1ce63d7ba790af3a329263d8be3
Showing with 4 additions and 0 deletions.
  1. +4 −0 fixes.sh
@@ -204,6 +204,10 @@ check process 9590 with pidfile /run/9590.pid
/bin/sed -i~ '/PHP Notice/d' /var/log/nems/nems-tools/warninglight
restartwarninglight=1
fi
if grep -q "sh: 1: /usr/local/bin/gpio: not found" /var/log/nems/nems-tools/warninglight; then
/bin/sed -i~ '/sh: 1: \/usr\/local\/bin\/gpio: not found/d' /var/log/nems/nems-tools/warninglight
restartwarninglight=1
fi
if (( $restartwarninglight == 1 )); then
kill `cat /var/run/warninglight.pid` && /root/nems/nems-tools/warninglight >> /var/log/nems/nems-tools/warninglight 2>&1 &
fi

0 comments on commit ee8d381

Please sign in to comment.