Default installer to full Docker setup

This commit is contained in:
2026-10-09 21:50:22 +01:00
parent f700d1beb2
commit a3e4d7817a
5 changed files with 33 additions and 23 deletions
+2 -8
View File
@@ -1,12 +1,7 @@
#!/bin/sh
set -eu
cd "$(dirname "$0")"
mode=${1:-}
if [ -z "$mode" ] && [ -t 0 ]; then
printf 'Install Docker server + ntfy, or native binaries only? [docker/native] (docker): '
read -r mode
mode=${mode:-docker}
fi
mode=${1:---docker}
case "$mode" in
--docker|docker)
if [ "$#" -gt 0 ]; then shift; fi
@@ -15,8 +10,7 @@ case "$mode" in
--native|native)
if [ "$#" -gt 0 ]; then shift; fi
;;
'') echo 'Non-interactive binary-only install. Use ./install.sh --docker for the configured server + ntfy.' >&2 ;;
*) echo 'Usage: ./install.sh [--native | --docker [setup options]] (native honors GOBIN and GOPATH)' >&2; exit 2 ;;
*) exec python3 scripts/setup-docker.py "$@" ;;
esac
if [ "$#" -ne 0 ]; then
echo 'Usage: ./install.sh --native (honors GOBIN and GOPATH)' >&2