From 584028ae60fa260b914b9dcfb07d87acee3f69fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=D0=91=D0=BE=D0=B1?= =?UTF-8?q?=D1=8B=D1=80=D0=B5=D0=B2?= Date: Sat, 25 Apr 2026 18:30:12 +0300 Subject: [PATCH] feat: uninstall.sh and README one-command server removal Made-with: Cursor --- README.md | 10 ++++++++++ uninstall.sh | 9 +++++++++ 2 files changed, 19 insertions(+) create mode 100755 uninstall.sh diff --git a/README.md b/README.md index 6d95051..3778ef3 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,16 @@ sudo systemctl restart keenetic-dns-routes Без git: скопируй каталог проекта поверх, затем снова `sudo bash update.sh` или команды выше. +## Удаление с сервера (одной командой) + +Останавливается `keenetic-dns-routes`, удаляется unit и каталог **`/opt/keenetic-dns-routes`**: + +```bash +curl -fsSL https://raw.githubusercontent.com/andrey271192/keenetic-dns-routes/main/uninstall.sh | sudo bash +``` + +Из каталога установки: `sudo bash uninstall.sh` + ## Поддержка - **GitHub:** [andrey271192](https://github.com/andrey271192) diff --git a/uninstall.sh b/uninstall.sh new file mode 100755 index 0000000..009b0dd --- /dev/null +++ b/uninstall.sh @@ -0,0 +1,9 @@ +#!/bin/bash +set -e +echo "Удаление keenetic-dns-routes…" +systemctl stop keenetic-dns-routes 2>/dev/null || true +systemctl disable keenetic-dns-routes 2>/dev/null || true +rm -f /etc/systemd/system/keenetic-dns-routes.service +systemctl daemon-reload 2>/dev/null || true +rm -rf /opt/keenetic-dns-routes +echo "Готово."