From 3ddd81183d0ba9859045e7da2bb63519bb5066d7 Mon Sep 17 00:00:00 2001 From: opi Date: Wed, 23 Nov 2016 21:49:09 +0100 Subject: [PATCH] [fix] Default value for redirect_type. Fixes #1 --- scripts/upgrade | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index ee4b589..8bfb6e8 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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