Files
keenetic_ssh-web/uninstall.sh
Андрей Бобырев 7047270784 keenetic_ssh-web: веб-панель CLI на Entware (порт 2001), расписание, вывод команд
- Flask + Waitress, пароль и ALLOWED_IPS
- install.sh / uninstall.sh, init Entware
- README, FUNDING, полоска автора

Made-with: Cursor
2026-04-25 23:51:22 +03:00

19 lines
557 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/sh
# Удаление keenetic_ssh-web с роутера (Entware)
set -e
INST="${INSTALL_DIR:-/opt/share/keenetic_ssh-web}"
INIT="/opt/etc/init.d/S99keenetic-ssh-web"
RCD="/opt/etc/rc.d/S99keenetic-ssh-web"
PID="/opt/var/run/keenetic-ssh-web.pid"
[ -x "$INIT" ] && "$INIT" stop 2>/dev/null || true
rm -f "$RCD" "$INIT" "$PID"
if [ "${KEEP_DATA:-0}" = "1" ]; then
echo "Каталог $INST сохранён (KEEP_DATA=1). Удалите вручную при необходимости."
exit 0
fi
rm -rf "$INST"
echo "Удалено: $INST"