Files
2026-08-11 18:52:41 +02:00

19 lines
489 B
Bash
Executable File

#!/bin/sh
set -eu
if [ "$(id -u)" -ne 0 ]; then
echo "Run this installer as root (sudo ./install.sh)" >&2
exit 1
fi
command -v rrdtool >/dev/null 2>&1 || {
echo "rrdtool is required: apt install rrdtool" >&2
exit 1
}
install -m 0644 systemd/*.service systemd/*.timer /etc/systemd/system/
systemctl daemon-reload
systemctl enable --now cheap-system-monitor.timer cheap-system-monitor-graphs.timer
echo "Installed. Edit /opt/cheap_system_monitor/monitor.conf if needed."