Skip to content
This repository was archived by the owner on Feb 5, 2018. It is now read-only.

Commit bea3141

Browse files
committed
platform command should answer no to questions
None of the commands should result in a question for its intended behaviour. The commands could ask if the command should be updated to a newer version but we avoid that to stick to known behaviour.
1 parent 42549db commit bea3141

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

usr/local/bin/lego-platform.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ verify_domains_in_platformsh () {
2727

2828
for i in "${!domains[@]}"
2929
do
30-
platform domain:get --yes --project="${PLATFORMSH_PROJECT_ID}" "${domains[i]}"
30+
platform domain:get --no --project="${PLATFORMSH_PROJECT_ID}" "${domains[i]}"
3131
local err=$?
3232
status=$((${err}|${status}))
3333
done
@@ -83,10 +83,10 @@ upload_certificate () {
8383

8484
# We allow the following commands to fail because there might not be a current certificate.
8585
set -x
86-
platform domain:get --project="${PLATFORMSH_PROJECT_ID}" --property=ssl "${domain}" | shyaml get-value certificate > "${current}"
86+
platform domain:get --no --project="${PLATFORMSH_PROJECT_ID}" --property=ssl "${domain}" | shyaml get-value certificate > "${current}"
8787

8888
if [ "$(openssl x509 -in "${cert}" -noout -fingerprint)" != "$(openssl x509 -in "${current}" -noout -fingerprint)" ]; then
89-
platform domain:update --yes --cert=${cert} --key=${key} --chain=${chain} --project="${PLATFORMSH_PROJECT_ID}" "${domain}"
89+
platform domain:update --no --cert=${cert} --key=${key} --chain=${chain} --project="${PLATFORMSH_PROJECT_ID}" "${domain}"
9090
fi
9191

9292
set +x

0 commit comments

Comments
 (0)