From 527093ebcba443a11f2b444e07bdc3e6d0ea1b36 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Sun, 29 Oct 2017 12:08:27 -0700 Subject: [PATCH] Stash the fqdn in the db for the next multi-domain release --- setup/start.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup/start.sh b/setup/start.sh index 8baab2e14..6e9a4b21e 100755 --- a/setup/start.sh +++ b/setup/start.sh @@ -294,6 +294,8 @@ find "${BOX_DATA_DIR}" -mindepth 1 -maxdepth 1 -not -path "${BOX_DATA_DIR}/mail" chown "${USER}:${USER}" -R "${BOX_DATA_DIR}/mail/dkim" # this is owned by box currently since it generates the keys echo "==> Adding automated configs" +mysql -u root -p${mysql_root_password} -e "REPLACE INTO settings (name, value) VALUES (\"fqdn\", '$arg_fqdn')" box + if [[ ! -z "${arg_backup_config}" ]]; then mysql -u root -p${mysql_root_password} \ -e "REPLACE INTO settings (name, value) VALUES (\"backup_config\", '$arg_backup_config')" box