From 24f30eca9dcf42a24d748af3b31480ba100c73e9 Mon Sep 17 00:00:00 2001 From: Le Kload Date: Sat, 23 May 2015 15:04:48 +0200 Subject: [PATCH] [fix] Allow root domain installation --- scripts/upgrade | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 164e0fc..f112454 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -5,7 +5,9 @@ path=$(sudo yunohost app setting zerobin path) is_public=$(sudo yunohost app setting zerobin is_public) # Remove trailing "/" for next commands -path=${path%/} +if [[ ! "$path" == "/" ]]; then + path=${path%/} +fi # Copy files to the right place final_path=/var/www/zerobin