mirror of
https://github.com/andrey271192/kaskad_web_vpn.git
synced 2026-09-20 11:55:35 +00:00
feat: kaskad memo site with Basic Auth
Flask + Docker, header support links, install/uninstall curl scripts, password file or ADMIN_PASSWORD. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
16
uninstall.sh
Executable file
16
uninstall.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
CONTAINER="${KASKAD_CONTAINER:-kaskad-web-vpn}"
|
||||
IMAGE="${KASKAD_IMAGE:-kaskad-web-vpn:latest}"
|
||||
|
||||
if docker ps -a --format '{{.Names}}' | grep -qx "$CONTAINER"; then
|
||||
docker rm -f "$CONTAINER"
|
||||
echo "Контейнер ${CONTAINER} удалён."
|
||||
else
|
||||
echo "Контейнер ${CONTAINER} не найден."
|
||||
fi
|
||||
|
||||
if [[ "${REMOVE_IMAGE:-0}" == "1" ]]; then
|
||||
docker rmi "$IMAGE" 2>/dev/null && echo "Образ ${IMAGE} удалён." || echo "Образ ${IMAGE} не найден или занят."
|
||||
fi
|
||||
Reference in New Issue
Block a user