From 2fca3fb92315c21bc349a7f9bdf013e629b7fce3 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Thu, 15 Feb 2018 19:53:58 +0100 Subject: [PATCH] Email setup during post-installation --- scripts/install | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/install b/scripts/install index 250f9f7..8cffdb9 100644 --- a/scripts/install +++ b/scripts/install @@ -190,6 +190,15 @@ if [[ -n $admin && -n $title ]]; then # Delete configuration.yml as it sensitive data ynh_secure_remove $finalflarumconf + # Email setup + sql_command="REPLACE INTO \`settings\` (\`key\`, \`value\`) VALUES +('mail_driver', 'mail'), +('mail_encryption', 'ssl'), +('mail_from', '$app@$domain'), +('mail_host', 'localhost'), +('mail_port', '587');" + ynh_mysql_execute_as_root "$sql_command" $db_name + # Install the SSOwat auth extension exec_composer $app $final_path "require tituspijean/flarum-ext-auth-ssowat:*@dev --ansi"