mirror of
https://github.com/andrey271192/keenetic-dns-routes.git
synced 2026-09-20 14:42:01 +00:00
feat: uninstall.sh and README one-command server removal
Made-with: Cursor
This commit is contained in:
10
README.md
10
README.md
@@ -64,6 +64,16 @@ sudo systemctl restart keenetic-dns-routes
|
|||||||
|
|
||||||
Без git: скопируй каталог проекта поверх, затем снова `sudo bash update.sh` или команды выше.
|
Без 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)
|
- **GitHub:** [andrey271192](https://github.com/andrey271192)
|
||||||
|
|||||||
9
uninstall.sh
Executable file
9
uninstall.sh
Executable file
@@ -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 "Готово."
|
||||||
Reference in New Issue
Block a user