feat: add lightweight API and web console

This commit is contained in:
way
2026-09-27 10:21:12 +08:00
parent fd4e2bf0f4
commit f42ea9d4bd
9 changed files with 382 additions and 36 deletions
+4 -1
View File
@@ -1,8 +1,11 @@
#!/bin/bash
set -euo pipefail
systemctl disable --now pigway-pi-control.service 2>/dev/null || true
systemctl disable --now pigway-pi-control-api.service pigway-pi-control.service 2>/dev/null || true
rm -f /etc/systemd/system/pigway-pi-control-api.service
rm -f /etc/systemd/system/pigway-pi-control.service
rm -f /usr/local/sbin/pigway-pi-control
rm -f /usr/local/sbin/pigway-pi-control-api
rm -f /etc/pigway-pi-control-api.token
rm -rf /usr/local/share/pigway-pi-control
systemctl daemon-reload
echo "程序已卸载。为防误删自定义内容,配置 /etc/pigway-pi-control.conf 已保留。"