mirror of
https://github.com/YunoHost-Apps/shaarli_ynh.git
synced 2024-09-03 20:26:10 +02:00
Attempt to fix weird permission issues
This commit is contained in:
parent
81e2833dd4
commit
728ddf3a69
3 changed files with 13 additions and 21 deletions
|
@ -74,10 +74,10 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
ynh_setup_source --dest_dir="$final_path"
|
ynh_setup_source --dest_dir="$final_path"
|
||||||
|
|
||||||
#chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
#chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
#chmod -R g+rwX $final_path/{cache/,data/,pagecache/,tmp/}
|
chmod -R u+rwX $final_path/{cache/,data/,pagecache/,tmp/}
|
||||||
#chown -R $app:www-data "$final_path"
|
chown -R $app:www-data "$final_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
|
|
|
@ -61,14 +61,10 @@ ynh_script_progression --message="Restoring the app main directory..."
|
||||||
|
|
||||||
ynh_restore_file --origin_path="$final_path"
|
ynh_restore_file --origin_path="$final_path"
|
||||||
|
|
||||||
#=================================================
|
chmod 750 "$final_path"
|
||||||
# RESTORE USER RIGHTS
|
chmod -R o-rwx "$final_path"
|
||||||
#=================================================
|
chmod -R u+rwX $final_path/{cache/,data/,pagecache/,tmp/}
|
||||||
ynh_script_progression --message="Restoring user rights..."
|
chown -R $app:www-data "$final_path"
|
||||||
|
|
||||||
chown -R $app: $final_path
|
|
||||||
chmod -R g+rX $final_path
|
|
||||||
chmod -R g+rwX $final_path/{cache/,data/,pagecache/,tmp/}
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE PHP-FPM CONFIGURATION
|
# RESTORE THE PHP-FPM CONFIGURATION
|
||||||
|
|
|
@ -94,6 +94,11 @@ then
|
||||||
ynh_secure_remove --file="$tmpdir"
|
ynh_secure_remove --file="$tmpdir"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
chmod 750 "$final_path"
|
||||||
|
chmod -R o-rwx "$final_path"
|
||||||
|
chmod -R u+rwX $final_path/{cache/,data/,pagecache/,tmp/}
|
||||||
|
chown -R $app:www-data "$final_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -132,15 +137,6 @@ fi
|
||||||
|
|
||||||
ynh_use_logrotate --non-append
|
ynh_use_logrotate --non-append
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# SECURE FILES AND DIRECTORIES
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Securing files and directories..."
|
|
||||||
|
|
||||||
chown -R $app: $final_path
|
|
||||||
chmod -R g+rX $final_path
|
|
||||||
chmod -R g+rwX $final_path/{cache/,data/,pagecache/,tmp/}
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# UPGRADE FAIL2BAN
|
# UPGRADE FAIL2BAN
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue