mirror of https://bitbucket.org/ausocean/av.git
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:
parent
b0e3240ebc
commit
15c5184983
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue