diff --git a/scripts/change_url b/scripts/change_url index d6e90dd..314b3aa 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -124,6 +124,8 @@ if [ $change_domain -eq 1 ] then # replace SERVER_EMAIL ynh_replace_string --match_string="noreply@$old_domain" --replace_string="noreply@$new_domain" --target_file="$settings" + # replace SITE_DOMAIN + ynh_replace_string --match_string="SITE_DOMAIN = \"$old_domain\"" --replace_string="SITE_DOMAIN = \"$new_domain\"" --target_file="$settings" # replace ALLOWED_HOSTS ynh_replace_string --match_string="ALLOWED_HOSTS = \[\"$old_domain\"\]" --replace_string="ALLOWED_HOSTS = \[\"$new_domain\"\]" --target_file="$settings" fi @@ -145,17 +147,6 @@ fi ynh_store_file_checksum --file="$finaluwsgiini" -#================================================= -# ChangeSite inside weblate -#================================================= -ynh_script_progression --message="Run weblate's command changesite..." --time --weight=1 -( - set +eu - source "${final_path}/venv/bin/activate" - export DJANGO_SETTINGS_MODULE="weblate.settings" - sudo -u $app $final_path/venv/bin/weblate changesite --set-name "$new_domain" -) - #================================================= # GENERIC FINALISATION #================================================= diff --git a/scripts/install b/scripts/install index 53a683d..7ce510a 100755 --- a/scripts/install +++ b/scripts/install @@ -183,7 +183,6 @@ ynh_script_progression --message="Filling up the database..." --time --weight=1 sudo -u $app $final_path/venv/bin/weblate migrate --noinput # generate static files sudo -u $app $final_path/venv/bin/weblate collectstatic --noinput - sudo -u $app $final_path/venv/bin/weblate changesite --set-name "$domain" sudo -u $app $final_path/venv/bin/weblate createadmin --no-color \ --password "weblate" \ --username "$admin" \