Browse Source
If SYNO_Create is not set here, print the nice message
pull/2935/head
Brian Hartvigsen
5 years ago
No known key found for this signature in database
GPG Key ID: 46EEA32081255BEB
1 changed files with
1 additions and
1 deletions
-
deploy/synology_dsm.sh
|
@ -113,7 +113,7 @@ synology_dsm_deploy() { |
|
|
id=$(echo "$response" | sed -n "s/.*\"desc\":\"$SYNO_Certificate\",\"id\":\"\([^\"]*\).*/\1/p") |
|
|
id=$(echo "$response" | sed -n "s/.*\"desc\":\"$SYNO_Certificate\",\"id\":\"\([^\"]*\).*/\1/p") |
|
|
_debug2 id "$id" |
|
|
_debug2 id "$id" |
|
|
|
|
|
|
|
|
if [ -z "$id" ] && [ -z "${SYNO_Create:?}" ]; then |
|
|
|
|
|
|
|
|
if [ -z "$id" ] && [ -z "$SYNO_Create" ]; then |
|
|
_err "Unable to find certificate: $SYNO_Certificate and \$SYNO_Create is not set" |
|
|
_err "Unable to find certificate: $SYNO_Certificate and \$SYNO_Create is not set" |
|
|
return 1 |
|
|
return 1 |
|
|
fi |
|
|
fi |
|
|