From 3eaffb354cae580d7285b96e10b7aa9958fd8414 Mon Sep 17 00:00:00 2001 From: Julien Malik Date: Mon, 17 Nov 2014 16:05:08 +0100 Subject: [PATCH] [enh] remove additionnal / --- scripts/install | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 9e1c528..e9dcc32 100644 --- a/scripts/install +++ b/scripts/install @@ -35,6 +35,8 @@ sudo mkdir -p $final_path #copy files to final folder and set permissions sudo cp -R ../sources/* $final_path/ + +#setup permissions sudo chown -R root: $final_path sudo chown -R www-data: $final_path/data sudo find $final_path -type f | xargs sudo chmod 644 @@ -45,7 +47,7 @@ sudo sed -i "s@YNH_EXAMPLE_PATH@$path@g" ../conf/nginx.conf sudo sed -i "s@YNH_EXAMPLE_ALIAS@$final_path@g" ../conf/nginx.conf sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf -#temporal set public acessible +#temporary set public accessible sudo yunohost app setting $app unprotected_uris -v "/" # Restart services @@ -66,7 +68,7 @@ curl -k -X POST \ --data-urlencode "pwd=$password" \ --data-urlencode "pwd2=$password" \ --data-urlencode "token=$token" \ - https://$domain/$path/install.php > /dev/null 2>&1 + https://$domain$path/install.php > /dev/null 2>&1 sudo rm -f $final_path/install.php