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

Merge pull request #62 from YunoHost-Apps/patch-email

Email setup during post-installation
This commit is contained in:
Titus PiJean 2018-02-15 20:07:41 +01:00 committed by GitHub
commit da235acdc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -190,6 +190,15 @@ if [[ -n $admin && -n $title ]]; then
# Delete configuration.yml as it sensitive data # Delete configuration.yml as it sensitive data
ynh_secure_remove $finalflarumconf 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 # Install the SSOwat auth extension
exec_composer $app $final_path "require tituspijean/flarum-ext-auth-ssowat:*@dev --ansi" exec_composer $app $final_path "require tituspijean/flarum-ext-auth-ssowat:*@dev --ansi"