mirror of
https://github.com/andrey271192/Keenetic_SSH.git
synced 2026-09-20 14:41:58 +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
@@ -114,3 +114,13 @@ journalctl -u keenetic-ssh -f
|
|||||||
```bash
|
```bash
|
||||||
cd /opt/keenetic-ssh && git pull && systemctl restart keenetic-ssh
|
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
9
uninstall.sh
Executable 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 "Готово."
|
||||||
Reference in New Issue
Block a user