Skip to content
Permalink
Browse files

Create log dir on non-NEMS installs.

  • Loading branch information...
Cat5TV committed Feb 25, 2019
1 parent 1e46694 commit 3a7c8e1adbfcca7879a7b067ee32acac44836cb4
Showing with 5 additions and 0 deletions.
  1. +5 −0 piwatcher
@@ -18,6 +18,11 @@ platform=$(/usr/local/bin/nems-info platform)

if [[ $platform < 10 ]]; then

# Just in case user is not on NEMS, create a log folder
if [[ ! -d /var/log/nems ]]; then
mkdir /var/log/nems
fi

# Check if a piWatcher is installed
piwatcher=$(/usr/local/bin/piwatcher status 2>&1)
if [[ $piwatcher == *"ERR"* ]]; then

0 comments on commit 3a7c8e1

Please sign in to comment.
You can’t perform that action at this time.