Default installer to full Docker setup
This commit is contained in:
+2
-8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user