diff --git a/manifest.json b/manifest.json index 5134b07..a4edb57 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "$app is a script that checks whether your websites and servers are up and running", "fr": "$app est un application pour vérifier que vos sites web et serveurs fonctionnent" }, - "version": "3.5.2~ynh2", + "version": "3.5.2~ynh3", "url": "www.phpservermonitor.org", "license": "GPL-3.0-or-later", "maintainer": { diff --git a/scripts/change_url b/scripts/change_url index 2c33704..8b51bbd 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -88,8 +88,6 @@ then path_url="$new_path" # Create a dedicated NGINX config ynh_add_nginx_config - # Change config file - ynh_replace_string --match_string="'PSM_BASE_URL', '.*'" --replace_string="'PSM_BASE_URL', '$path_url'" --target_file="$final_path/config.php" fi # Change the domain for NGINX @@ -105,6 +103,18 @@ fi #================================================= # GENERIC FINALISATION #================================================= +#================================================= +# Update Config file +#================================================= +if [ $change_path -eq 1 ] +then + # Update config file + ynh_replace_string --match_string="'PSM_BASE_URL', '.*'" --replace_string="'PSM_BASE_URL', '$path_url'" --target_file="$final_path/config.php" + #replace checksum + ynh_delete_file_checksum --file="$final_path/config.php" + ynh_store_file_checksum --file="$final_path/config.php" + +fi #=================================================