Commit 1a6aeacd authored by Vesa Vertainen's avatar Vesa Vertainen

fixed pipeline-setup, added generating rsa key to bootstrap

parent d86a5dd4
Pipeline #83795881 failed with stage
in 11 minutes and 22 seconds
......@@ -14,6 +14,7 @@ if [ "$HOSTNAME" = "concourse.cincan.io" ]; then
concourse generate-key -t rsa -f "${KEYS_PATH}/session_signing_key"
concourse generate-key -t ssh -f "${KEYS_PATH}/tsa_host_key"
concourse generate-key -t ssh -f "${KEYS_PATH}/worker_key"
ssh-keygen -o -t rsa -m pem -b 4096 -q -N '' -f "${KEYS_PATH}/cincan_rsa"
cp "${KEYS_PATH}/worker_key.pub" "${KEYS_PATH}/authorized_worker_keys"
concourse web
fi
......
......@@ -60,9 +60,10 @@ if [ "$1" == "" ]; then
PS3="Your choice: "
select CHOSEN_PIPELINE in "${OPTIONS[@]}"; do
if [[ -n "$CHOSEN_PIPELINE" ]]; then
if [ "$REPLY" = "4" ]; then exit; fi
break
else
if [ "$REPLY" = "q" ] || [ "$REPLY" = "Q" ]; then exit;fi
if [ "$REPLY" = "q" ] || [ "$REPLY" = "Q" ]; then exit; fi
echo -e "$ERROR invalid option"
fi
done
......@@ -71,6 +72,8 @@ fi
# Check if private registry was chosen
if [[ $CHOSEN_PIPELINE == *"Private"* ]]; then
PIPELINE="${CHOSEN_PIPELINE/" $REGISTRY_VERSION"/}"
else
PIPELINE="${CHOSEN_PIPELINE}"
fi
# Change directory and launch pipeline setup.sh, if exists
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment