hugvey/install_server.sh

19 lines
600 B
Bash
Raw Normal View History

2019-03-29 16:25:20 +01:00
apt-get update
2019-03-29 16:23:14 +01:00
2019-03-29 16:25:20 +01:00
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
2019-03-29 16:20:23 +01:00
2019-03-29 16:25:20 +01:00
apt-get install -y supervisor
2019-03-29 16:20:23 +01:00
# Added chown=pi:pi
2019-03-29 16:25:20 +01:00
cp installation/supervisord.conf /etc/supervisor/supervisord.conf
ln -s /home/pi/hugvey/supervisor.conf /etc/supervisor/conf.d/hugvey.conf
2019-03-29 16:26:23 +01:00
service supervisor restart
2019-03-29 16:25:20 +01:00
supervisorctl reread
supervisorctl update
2019-03-29 16:20:23 +01:00