store tls config in database

This commit is contained in:
Girish Ramakrishnan
2015-12-11 22:14:53 -08:00
parent 8b7833e8b1
commit 3fbcbf0e5d
3 changed files with 25 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ arg_is_custom_domain="false"
arg_restore_key=""
arg_restore_url=""
arg_retire="false"
arg_tls_config=""
arg_tls_cert=""
arg_tls_key=""
arg_token=""
@@ -37,6 +38,9 @@ EOF
arg_tls_cert=$(echo "$2" | $json tlsCert)
arg_tls_key=$(echo "$2" | $json tlsKey)
arg_tls_config=$(echo "$2" | $json tlsConfig)
[[ "${arg_tls_config}" == "null" ]] && arg_tls_config=""
arg_restore_url=$(echo "$2" | $json restore.url)
[[ "${arg_restore_url}" == "null" ]] && arg_restore_url=""