mirror of
https://github.com/YunoHost-Apps/phpservermon_ynh.git
synced 2024-09-03 19:56:40 +02:00
fix config file
This commit is contained in:
parent
1e0b649231
commit
a3e1ab80b3
2 changed files with 13 additions and 3 deletions
|
@ -6,7 +6,7 @@
|
||||||
"en": "$app is a script that checks whether your websites and servers are up and running",
|
"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"
|
"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",
|
"url": "www.phpservermonitor.org",
|
||||||
"license": "GPL-3.0-or-later",
|
"license": "GPL-3.0-or-later",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
|
|
|
@ -88,8 +88,6 @@ then
|
||||||
path_url="$new_path"
|
path_url="$new_path"
|
||||||
# Create a dedicated NGINX config
|
# Create a dedicated NGINX config
|
||||||
ynh_add_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
|
fi
|
||||||
|
|
||||||
# Change the domain for NGINX
|
# Change the domain for NGINX
|
||||||
|
@ -105,6 +103,18 @@ fi
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALISATION
|
# 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
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue