Skip to content

Commit

Permalink
Symlink creation if required
Browse files Browse the repository at this point in the history
  • Loading branch information
kompotkot committed Dec 14, 2023
1 parent 34e55bf commit 5c56518
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions deploy/deploy.bash
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,11 @@ echo "AWS_REGION=${AWS_DEFAULT_REGION}" >> "${PARAMETERS_ENV_PATH}"

echo
echo
echo -e "${PREFIX_INFO} Create symlink to config.json"
ln -sf "${STORAGE_PATH}/config.json" "${SECRETS_DIR}/config.json"
echo -e "${PREFIX_INFO} Prepare symlink to config"
if [ ! -f "${SECRETS_DIR}/config.json" ]; then
ln -sf "${STORAGE_PATH}/config.json" "${SECRETS_DIR}/config.json"
echo -e "${PREFIX_WARN} Created symling to config.json"
fi

echo
echo
Expand Down

0 comments on commit 5c56518

Please sign in to comment.