From f1a264865185a938e22a373e791a8b76536aef2b Mon Sep 17 00:00:00 2001 From: Le Kload Date: Sat, 23 May 2015 15:04:16 +0200 Subject: [PATCH] [fix] Allow root domain installation --- scripts/install | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/install b/scripts/install index c910e8f..ac625fc 100755 --- a/scripts/install +++ b/scripts/install @@ -11,6 +11,11 @@ if [[ ! $? -eq 0 ]]; then exit 1 fi +# Remove trailing "/" for next commands +if [[ ! "$path" == "/" ]]; then + path=${path%/} +fi + # Copy files to the right place final_path=/var/www/zerobin sudo mkdir -p $final_path