Commit 851d439b authored by Igor Pecovnik's avatar Igor Pecovnik
Browse files

rpimonitor bugfix

parent 0ea3ebfc
...@@ -88,18 +88,22 @@ fi ...@@ -88,18 +88,22 @@ fi
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 2C0D3C0F apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 2C0D3C0F
debconf-apt-progress -- apt-get update debconf-apt-progress -- apt-get update
debconf-apt-progress -- apt-get -y install rpimonitor debconf-apt-progress -- apt-get -y install rpimonitor
service rpimonitor stop
# add my own configuration which is not default # add my own configuration which is not default
cd /etc/rpimonitor cd /etc/rpimonitor
wget https://github.com/igorpecovnik/Debian-micro-home-server/blob/next/src/rpimonitor-myconfig.tgz?raw=true -O - | tar -xz wget https://github.com/igorpecovnik/Debian-micro-home-server/blob/next/src/rpimonitor-myconfig.tgz?raw=true -O - | tar -xz
cd /usr/local/bin cd /usr/local/bin
wget https://github.com/igorpecovnik/Debian-micro-home-server/blob/next/src/temp-pir-daemon.sh?raw=true wget https://github.com/igorpecovnik/Debian-micro-home-server/blob/next/src/temp-pir-daemon.sh
chmod +x /usr/local/bin/temp-pir-daemon.sh chmod +x /usr/local/bin/temp-pir-daemon.sh
sed -e 's/exit 0//g' -i /etc/rc.local sed -e 's/exit 0//g' -i /etc/rc.local
cat >> /etc/rc.local <<"EOF" cat >> /etc/rc.local <<"EOF"
nohup /usr/local/bin/temp-daemon.sh & nohup /usr/local/bin/temp-pir-daemon.sh &
exit 0 exit 0
EOF EOF
service rpimonitor restart ln -sf /etc/rpimonitor/template/bananian.conf /etc/rpimonitor/data.conf
rm -rf /var/lib/rpimonitor/stat
service rpimonitor start
/usr/share/rpimonitor/scripts/updatePackagesStatus.pl
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment