Skip to content

Commit

Permalink
add emonhub.env settings file and install as part of update
Browse files Browse the repository at this point in the history
  • Loading branch information
TrystanLea committed Jun 4, 2019
1 parent 88cbae7 commit 693ebd7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions defaults/etc/emonhub/emonhub.env
@@ -0,0 +1,3 @@
EMONHUB_SRC=/usr/share/emonhub
EMONHUB_CONF=/etc/emonhub
EMONHUB_LOG=/var/log/emonhub
5 changes: 3 additions & 2 deletions update/emonhub.sh
Expand Up @@ -24,10 +24,11 @@ if [ -d $usrdir/emonhub ]; then
if [ ! -d /etc/emonhub ]; then
sudo mkdir /etc/emonhub
fi
# emonhub.conf
sudo ln -sf $usrdir/data/emonhub.conf /etc/emonhub
# emonhub env setting
sudo cp $usrdir/emonpi/defaults/etc/emonhub/emonhub.env /etc/emonhub/emonhub.env

# echo "Symlinking emonhub.py to /usr/local/bin"
# sudo ln -sf $usrdir/emonhub/src/emonhub.py /usr/local/bin

service="emonhub"
servicepath="$usrdir/emonhub/service/emonhub.service"
Expand Down

0 comments on commit 693ebd7

Please sign in to comment.