Commit 73aa4985 authored by Igor Pecovnik's avatar Igor Pecovnik
Browse files

rpimonitor bugfix

parent 7d8edf13
...@@ -93,7 +93,7 @@ service rpimonitor stop ...@@ -93,7 +93,7 @@ service rpimonitor stop
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 -xhz wget https://github.com/igorpecovnik/Debian-micro-home-server/blob/next/src/rpimonitor-myconfig.tgz?raw=true -O - | tar -xhz
cd /usr/local/bin cd /usr/local/bin
wget https://github.com/igorpecovnik/Debian-micro-home-server/blob/next/src/temp-pir-daemon.sh wget https://github.com/igorpecovnik/Debian-micro-home-server/blob/next/src/temp-pir-daemon.sh?raw=true -O 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"
...@@ -102,6 +102,7 @@ exit 0 ...@@ -102,6 +102,7 @@ exit 0
EOF EOF
rm -rf /var/lib/rpimonitor/stat rm -rf /var/lib/rpimonitor/stat
mkdir -p /var/log/rpimonitor mkdir -p /var/log/rpimonitor
nohup /usr/local/bin/temp-pir-daemon.sh &
service rpimonitor start service rpimonitor start
/usr/share/rpimonitor/scripts/updatePackagesStatus.pl /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