feat: uninstall.sh and README one-command server removal

Made-with: Cursor
This commit is contained in:
Андрей Бобырев
2026-04-25 18:30:13 +03:00
parent d5116bcf69
commit a78311767b
2 changed files with 19 additions and 0 deletions

View File

@@ -114,3 +114,13 @@ journalctl -u keenetic-ssh -f
```bash
cd /opt/keenetic-ssh && git pull && systemctl restart keenetic-ssh
```
## Удаление с сервера (одной командой)
Останавливается `keenetic-ssh`, удаляется unit и каталог **`/opt/keenetic-ssh`**:
```bash
curl -fsSL https://raw.githubusercontent.com/andrey271192/Keenetic_SSH/main/uninstall.sh | sudo bash
```
Из каталога установки: `sudo bash uninstall.sh`

9
uninstall.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
set -e
echo "Удаление Keenetic SSH…"
systemctl stop keenetic-ssh 2>/dev/null || true
systemctl disable keenetic-ssh 2>/dev/null || true
rm -f /etc/systemd/system/keenetic-ssh.service
systemctl daemon-reload 2>/dev/null || true
rm -rf /opt/keenetic-ssh
echo "Готово."