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