treat: remove run as pi user

this is done because the treatment program needs to be run as root to write to gpio
This commit is contained in:
Trek H 2020-10-20 21:41:08 +10:30
parent b0e3240ebc
commit 15c5184983
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ GOPATH=$HOME/go
TREATPATH=$GOPATH/src/bitbucket.org/ausocean/av/cmd/treatment
PATH=$PATH:/usr/local/go/bin:$TREATPATH
cd $TREATPATH
sudo -u pi HOME=$HOME GOPATH=$GOPATH PATH=$PATH ./treatment
sudo HOME=$HOME GOPATH=$GOPATH PATH=$PATH ./treatment
if [ $? -eq 0 ]
then
echo "Successfully exited treatment"