mirror of
https://github.com/YunoHost-Apps/redirect_ynh.git
synced 2024-09-03 20:16:10 +02:00
[fix] Default value for redirect_type. Fixes #1
This commit is contained in:
parent
d7214fecca
commit
3ddd81183d
1 changed files with 6 additions and 0 deletions
|
@ -25,6 +25,12 @@ is_public=$(ynh_app_setting_get "$app" is_public)
|
|||
redirect_type=$(ynh_app_setting_get "$app" redirect_type)
|
||||
redirect_path=$(ynh_app_setting_get "$app" redirect_path)
|
||||
|
||||
# Default value for redirect_type if upgrading from https://github.com/scith/redirect_ynh
|
||||
if [ -z "$redirect_type" ];
|
||||
then
|
||||
redirect_type="proxy"
|
||||
fi
|
||||
|
||||
# Remove trailing slash to path
|
||||
path=${path%/}
|
||||
#force location to be / or /foo
|
||||
|
|
Loading…
Reference in a new issue