mirror of
https://github.com/YunoHost-Apps/monitorix_ynh.git
synced 2024-09-03 19:46:06 +02:00
Fix Change_url script
This commit is contained in:
parent
07c1cd0f2e
commit
0cdc091a76
1 changed files with 10 additions and 2 deletions
|
@ -11,9 +11,17 @@ source ./_common.sh
|
|||
|
||||
# Retrive arguments
|
||||
old_domain=$YNH_APP_OLD_DOMAIN
|
||||
old_path=$(ynh_normalize_url_path $YNH_APP_OLD_PATH)
|
||||
old_path=$YNH_APP_OLD_PATH
|
||||
|
||||
new_domain=$YNH_APP_NEW_DOMAIN
|
||||
new_path=$(ynh_normalize_url_path $YNH_APP_NEW_PATH)
|
||||
new_path=$YNH_APP_NEW_PATH
|
||||
|
||||
test -n "$old_path" || old_path="/"
|
||||
test -n "$new_path" || new_path="/"
|
||||
|
||||
new_path=$(ynh_normalize_url_path $new_path)
|
||||
old_path=$(ynh_normalize_url_path $old_path)
|
||||
|
||||
http_port=$(ynh_app_setting_get "$app" http_port)
|
||||
|
||||
# CHECK WHICH PARTS SHOULD BE CHANGED
|
||||
|
|
Loading…
Add table
Reference in a new issue