1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/osada_ynh.git synced 2024-09-03 19:46:30 +02:00

Fixed permission issue

This commit is contained in:
anmol26s 2021-02-12 20:29:24 +05:30
parent b79091c509
commit 6962065d5a
3 changed files with 26 additions and 25 deletions

View file

@ -1,4 +1,5 @@
location __PATH__ #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ {
{ {
alias __FINALPATH__/; alias __FINALPATH__/;
# Force https # Force https
@ -26,7 +27,7 @@
location ~* \.php$ location ~* \.php$
{ {
try_files $uri =404; try_files $uri =404;
fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
fastcgi_index index.php; fastcgi_index index.php;
include fastcgi_params; include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
@ -70,4 +71,3 @@
deny all; deny all;
} }
} }

View file

@ -84,8 +84,8 @@ git clone https://codeberg.org/zot/osada.git "$final_path"
# 2 - Osada Addons # 2 - Osada Addons
# Make addon Directory and unpack the Osada addons to this directory # Make addon Directory and unpack the Osada addons to this directory
ynh_script_progression --message="Create addon directory inside Osada root folder..." # ynh_script_progression --message="Create addon directory inside Osada root folder..."
mkdir $final_path/addon # mkdir $final_path/addon
ynh_script_progression --message="Setting up Osada addons source files..." ynh_script_progression --message="Setting up Osada addons source files..."
# ynh_setup_source --dest_dir="$final_path/addon" --source_id="app_addons" # ynh_setup_source --dest_dir="$final_path/addon" --source_id="app_addons"
@ -96,8 +96,9 @@ popd
# 3 - Some extra folders # 3 - Some extra folders
ynh_script_progression --message="Creating smarty3 folder for personal data..." ynh_script_progression --message="Creating smarty3 folder for personal data..."
mkdir -p "${final_path}/store/[data]/smarty3" mkdir -p "${final_path}/store"
chmod -R 775 $final_path/store mkdir -p "${final_path}/cache/smarty3"
chmod -R 777 $final_path/store $final_path/cache
# Copy the template install/htconfig.sample.php to .htconfig.php # Copy the template install/htconfig.sample.php to .htconfig.php
ynh_script_progression --message="Moving .htconfig.php to root of Osada ..." ynh_script_progression --message="Moving .htconfig.php to root of Osada ..."

View file

@ -91,7 +91,7 @@ ynh_setup_source --dest_dir="$final_path"
pushd "$final_path" pushd "$final_path"
util/udall util/udall
popd popd
chmod -R 775 $final_path/store chmod -R 777 $final_path/store $final_path/cache
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION
#================================================= #=================================================