hugvey/install_server.sh
Ruben van de Ven 3477f58ab9 As sudo
2019-03-29 16:25:20 +01:00

18 lines
601 B
Bash
Executable file

apt-get update
apt-get install -y munin-node
cp installation/rpi-internal-temp /usr/share/munin/plugins
ln -sf /usr/share/munin/plugins/rpi-internal-temp /etc/munin/plugins/rpi-internal-temp
chmod a+x /usr/share/munin/plugins/rpi-internal-temp
echo "allow ^192\\.168\\.0\\.155\$" >> /etc/munin/munin-node.conf
service munin-node restart
apt-get install -y supervisor
# Added chown=pi:pi
cp installation/supervisord.conf /etc/supervisor/supervisord.conf
ln -s /home/pi/hugvey/supervisor.conf /etc/supervisor/conf.d/hugvey.conf
service supervisord restart
supervisorctl reread
supervisorctl update