Stash the fqdn in the db for the next multi-domain release

This commit is contained in:
Girish Ramakrishnan
2017-10-29 12:08:27 -07:00
parent bd5835b866
commit 527093ebcb
+2
View File
@@ -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