first commit
This commit is contained in:
commit
24f5b3fdfa
7 files changed
+494
No files matched your search
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
if [[ "${EUID}" -ne 0 ]]; then
|
||||
echo "请使用 sudo 执行: sudo ./scripts/uninstall.sh" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
systemctl disable --now cleanup-smartcam-data.timer 2>/dev/null || true
|
||||
rm -f \
|
||||
/etc/systemd/system/cleanup-smartcam-data.timer \
|
||||
/etc/systemd/system/cleanup-smartcam-data.service \
|
||||
/usr/local/sbin/cleanup-smartcam-data
|
||||
systemctl daemon-reload
|
||||
|
||||
echo "cleanup-smartcam-data 已卸载。"
|
||||
echo "未删除 /var/lib/cleanup-smartcam-data;请确认采集未处于暂停状态后再人工处理该目录。"
|
||||
Reference in new issue
Block a user