Bugfix "change_url"

In `_common.sh` we have:

```
domain=$YNH_APP_ARG_DOMAIN
path_url=$YNH_APP_ARG_PATH
```

Set these variables to the "NEW" ones. Another fix is:

```diff
-path=$YNH_APP_NEW_PATH
+path_url=$YNH_APP_NEW_PATH
```

to replace `__PATH_URL__` correctly!
This commit is contained in:
JensDiemer 2022-09-17 16:50:38 +02:00
parent 045391398a
commit cac792ce72

View file

@ -6,6 +6,9 @@
# IMPORT GENERIC HELPERS # IMPORT GENERIC HELPERS
#================================================= #=================================================
YNH_APP_ARG_DOMAIN=$YNH_APP_NEW_DOMAIN
YNH_APP_ARG_PATH=$YNH_APP_NEW_PATH
source _common.sh source _common.sh
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
@ -126,7 +129,7 @@ fi
ynh_script_progression --message="Modify $app config file..." ynh_script_progression --message="Modify $app config file..."
domain=$YNH_APP_NEW_DOMAIN domain=$YNH_APP_NEW_DOMAIN
path=$YNH_APP_NEW_PATH path_url=$YNH_APP_NEW_PATH
ynh_add_config --template="settings.py" --destination="$final_path/settings.py" ynh_add_config --template="settings.py" --destination="$final_path/settings.py"