Skip to content

Commit 6ac7bd9

Browse files
committed
chore(scripts/develop.sh): correct first org name when pushing initial template
1 parent 97ce44a commit 6ac7bd9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/develop.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ DEFAULT_PASSWORD="SomeSecurePassword!"
1919
password="${CODER_DEV_ADMIN_PASSWORD:-${DEFAULT_PASSWORD}}"
2020
use_proxy=0
2121
multi_org=0
22+
first_org="coder"
2223

2324
args="$(getopt -o "" -l access-url:,use-proxy,agpl,debug,password:,multi-organization -- "$@")"
2425
eval set -- "$args"
@@ -216,8 +217,8 @@ fatal() {
216217
DOCKER_HOST="$(docker context inspect --format '{{ .Endpoints.docker.Host }}')"
217218
printf 'docker_arch: "%s"\ndocker_host: "%s"\n' "${GOARCH}" "${DOCKER_HOST}" >"${temp_template_dir}/params.yaml"
218219
(
219-
echo "Pushing docker template to 'first-organization'..."
220-
"${CODER_DEV_SHIM}" templates push "${template_name}" --directory "${temp_template_dir}" --variables-file "${temp_template_dir}/params.yaml" --yes --org first-organization
220+
echo "Pushing docker template to '${first_org}'..."
221+
"${CODER_DEV_SHIM}" templates push "${template_name}" --directory "${temp_template_dir}" --variables-file "${temp_template_dir}/params.yaml" --yes --org "${first_org}"
221222
if [ "${multi_org}" -gt "0" ]; then
222223
echo "Pushing docker template to '${another_org}'..."
223224
"${CODER_DEV_SHIM}" templates push "${template_name}" --directory "${temp_template_dir}" --variables-file "${temp_template_dir}/params.yaml" --yes --org "${another_org}"

0 commit comments

Comments
 (0)