fix: [nomad-step-1] S1.3 — wire --with forgejo into bin/disinto init --backend=nomad (#842) #868
1 changed files with 8 additions and 1 deletions
|
|
@ -762,7 +762,6 @@ _disinto_init_nomad() {
|
||||||
fi
|
fi
|
||||||
deploy_cmd+=("$svc")
|
deploy_cmd+=("$svc")
|
||||||
done
|
done
|
||||||
deploy_cmd+=("--dry-run") # deploy.sh supports --dry-run
|
|
||||||
|
|
||||||
if [ "$(id -u)" -eq 0 ]; then
|
if [ "$(id -u)" -eq 0 ]; then
|
||||||
"${deploy_cmd[@]}" || exit $?
|
"${deploy_cmd[@]}" || exit $?
|
||||||
|
|
@ -840,6 +839,14 @@ disinto_init() {
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# --empty is nomad-only today (the docker path has no concept of an
|
||||||
|
# "empty cluster"). Reject explicitly rather than letting it silently
|
||||||
|
# do nothing on --backend=docker.
|
||||||
|
if [ "$empty" = true ] && [ "$backend" != "nomad" ]; then
|
||||||
|
echo "Error: --empty is only valid with --backend=nomad" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# --with requires --backend=nomad
|
# --with requires --backend=nomad
|
||||||
if [ -n "$with_services" ] && [ "$backend" != "nomad" ]; then
|
if [ -n "$with_services" ] && [ "$backend" != "nomad" ]; then
|
||||||
echo "Error: --with requires --backend=nomad" >&2
|
echo "Error: --with requires --backend=nomad" >&2
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue