1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/flarum_ynh.git synced 2024-09-03 18:36:24 +02:00

Email setup during post-installation

This commit is contained in:
tituspijean 2018-02-15 19:53:58 +01:00
parent 41f591ccb2
commit 2fca3fb923

View file

@ -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"