From abc4975b3df3a47ef69661f96236af2459c8fb82 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Sat, 12 Dec 2015 15:40:33 -0800 Subject: [PATCH] add tls configuration to database --- setup/start.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/setup/start.sh b/setup/start.sh index ef7964b00..15131982b 100755 --- a/setup/start.sh +++ b/setup/start.sh @@ -177,13 +177,12 @@ if [[ ! -z "${arg_dns_config}" ]]; then fi # Add TLS Configuration -# Enable in next release because the previous version sends the certs as well -# if [[ ! -z "${arg_tls_config}" ]]; then -# echo "Add TLS Config" -# -# mysql -u root -p${mysql_root_password} \ -# -e "REPLACE INTO settings (name, value) VALUES (\"tls_config\", '$arg_tls_config')" box -# fi +if [[ ! -z "${arg_tls_config}" ]]; then + echo "Add TLS Config" + + mysql -u root -p${mysql_root_password} \ + -e "REPLACE INTO settings (name, value) VALUES (\"tls_config\", '$arg_tls_config')" box +fi # Add webadmin oauth client # The domain might have changed, therefor we have to update the record