cleaner setup in /opt

This commit is contained in:
2026-08-11 18:52:41 +02:00
parent 84ea3b21a9
commit 8ebf939e81
4 changed files with 5 additions and 10 deletions
+1 -6
View File
@@ -11,13 +11,8 @@ command -v rrdtool >/dev/null 2>&1 || {
exit 1
}
install -d /opt/cheap_system_monitor /var/lib/cheap-system-monitor
install -m 0755 system_monitor.py generate_graphs.py /opt/cheap_system_monitor/
install -m 0644 systemd/*.service systemd/*.timer /etc/systemd/system/
if [ ! -e /etc/cheap-system-monitor.conf ]; then
install -m 0644 cheap-system-monitor.conf.example /etc/cheap-system-monitor.conf
fi
systemctl daemon-reload
systemctl enable --now cheap-system-monitor.timer cheap-system-monitor-graphs.timer
echo "Installed. Edit /etc/cheap-system-monitor.conf if needed."
echo "Installed. Edit /opt/cheap_system_monitor/monitor.conf if needed."