treat: replace rv with treatment

This commit is contained in:
Trek H 2020-09-29 16:46:57 +09:30
parent 45e36a6c09
commit 55e583cdb5
2 changed files with 3 additions and 3 deletions

View File

@ -78,7 +78,7 @@ hard_copy_files_treat:
fi
cp -f treatment.service /etc/systemd/system
systemctl enable treatment.service
chmod +x pi_run.sh
chmod +x treatment_run.sh
if [ -f /etc/netsender.conf ] ; then \
echo "Backed up netsender.conf to /etc/netsender.conf.bak"; \
cp /etc/netsender.conf /etc/netsender.conf.bak ; \

View File

@ -1,7 +1,7 @@
#!/bin/sh -e
# This script launches treatment on a pi, intended to run at boot time.
TREATPATH=/home/pi/go/src/bitbucket.org/ausocean/av/cmd/rv
TREATPATH=/home/pi/go/src/bitbucket.org/ausocean/av/cmd/treatment
echo Set kernel parameters:
# kernel settings to improve performance on Raspberry Pi
@ -28,7 +28,7 @@ sudo ip addr show | grep inet
exec 2> /var/log/netsender/stream.log
exec 1>&2
# set env, working dir and run rv as pi user
# set env, working dir and run treatment as pi user
HOME=/home/pi
GOPATH=$HOME/go
TREATPATH=$GOPATH/src/bitbucket.org/ausocean/av/cmd/treatment