diff --git a/conf/nginx.conf b/conf/nginx.conf index 6bc7fe6..78da293 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -5,7 +5,7 @@ location YNH_EXAMPLE_PATH { rewrite ^ https://$server_name$request_uri? permanent; } client_max_body_size 10G; - # Example PHP configuration + index index.php; try_files $uri $uri/ index.php; location ~ [^/]\.php(/|$) { diff --git a/scripts/install b/scripts/install index 45a113a..95e1694 100644 --- a/scripts/install +++ b/scripts/install @@ -35,11 +35,10 @@ sudo yunohost app setting $app domain -v "$domain" sudo yunohost app setting $app path -v "$path" # Download bozon -cd $parent_path -sudo wget https://github.com/broncowdd/BoZoN/archive/master.zip -sudo unzip master.zip -sudo rm master.zip -sudo mv BoZoN-master $app +sudo wget https://github.com/broncowdd/BoZoN/archive/master.zip -O $parent_path +sudo unzip $parent_path/master.zip +sudo rm $parent_path/master.zip +sudo mv $parent_path/BoZoN-master $parent_path/$app # Copy files to final folder and set permissions sudo find $final_path -type f -name ".htaccess" | xargs sudo rm