From 81ec8b36ce41a620817c131f6d5b5725e81b4528 Mon Sep 17 00:00:00 2001 From: Kay0u Date: Tue, 5 Jan 2021 12:01:49 +0100 Subject: [PATCH] Fix email config --- conf/settings.py | 2 +- scripts/install | 1 + scripts/upgrade | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/settings.py b/conf/settings.py index eac051a..c446497 100644 --- a/conf/settings.py +++ b/conf/settings.py @@ -776,7 +776,7 @@ SERVER_EMAIL = "noreply@__DOMAIN__" # Default email address to use for various automated correspondence from # the site managers. Used for registration emails. -DEFAULT_FROM_EMAIL = "__ADMINMAIL__" +DEFAULT_FROM_EMAIL = "__APP__@__DOMAIN__" # List of URLs your site is supposed to serve ALLOWED_HOSTS = ["__DOMAIN__"] diff --git a/scripts/install b/scripts/install index 0346ae9..15c23ca 100755 --- a/scripts/install +++ b/scripts/install @@ -161,6 +161,7 @@ ynh_replace_string --match_string="__GITHUBUSER__" --replace_string="$github_acc ynh_replace_string --match_string="__GITHUBTOKEN__" --replace_string="$github_token" --target_file="$settings" ynh_replace_string --match_string="__REDIS_DB__" --replace_string="$redis_db" --target_file="$settings" ynh_replace_string --match_string="__PYTHONPATH__" --replace_string="$weblate_pypath" --target_file="$settings" +ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="$settings" # remove last "/" of $path_url ynh_replace_string --match_string="__PATHURL__" --replace_string="${path_url%/}" --target_file="$settings" diff --git a/scripts/upgrade b/scripts/upgrade index 3bea4af..3506e41 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -208,6 +208,7 @@ upgrade() { ynh_replace_string --match_string="__GITHUBTOKEN__" --replace_string="$github_token" --target_file="$settings" ynh_replace_string --match_string="__REDIS_DB__" --replace_string="$redis_db" --target_file="$settings" ynh_replace_string --match_string="__PYTHONPATH__" --replace_string="$weblate_pypath" --target_file="$settings" + ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="$settings" # remove last "/" of $path_url ynh_replace_string --match_string="__PATHURL__" --replace_string="${path_url%/}" --target_file="$settings"