diff --git a/doc/ADMIN.md b/doc/ADMIN.md index 1a8f714..d12e1d6 100644 --- a/doc/ADMIN.md +++ b/doc/ADMIN.md @@ -1 +1,3 @@ If you want to use Ghost's CLI, run `sudo yunohost app shell __APP__` in a terminal to load the proper environment. + +Emails such as newsletters will be sent out from `noreply@__DOMAIN__`. Do not change this setting in Ghost's administration interface, it will not work. diff --git a/manifest.toml b/manifest.toml index 54fb368..fc42627 100644 --- a/manifest.toml +++ b/manifest.toml @@ -50,6 +50,7 @@ ram.runtime = "1G" [resources.system_user] allow_email = true + mail_user = "noreply" [resources.install_dir] diff --git a/scripts/install b/scripts/install index 96dd6af..210c2e7 100644 --- a/scripts/install +++ b/scripts/install @@ -47,7 +47,8 @@ popd # Make sure the configuration is correct pushd $install_dir/ghost ynh_exec_as $app $ynh_node_load_PATH $install_dir/node_modules/ghost-cli/bin/ghost config \ - --port $port --process local + --port $port --process local \ + --mail SMTP --mailuser noreply@$domain --mailpass $mail_pwd --mailhost 127.0.0.1 --mailport 25 popd #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index be0e228..bfb99d2 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -111,7 +111,8 @@ fi # Make sure the configuration is correct pushd $install_dir/ghost ynh_exec_as $app $ynh_node_load_PATH $install_dir/node_modules/ghost-cli/bin/ghost config \ - --port $port --process local + --port $port --process local \ + --mail SMTP --mailuser noreply@$domain --mailpass $mail_pwd --mailhost 127.0.0.1 --mailport 25 popd # Cleanup cache