1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dotclear2_ynh.git synced 2024-09-03 18:26:29 +02:00

secure files

This commit is contained in:
Kay0u 2020-04-18 00:37:11 +02:00
parent b621a399b8
commit 5a4bf8a734
No known key found for this signature in database
GPG key ID: AE1DCADB6415A156
3 changed files with 13 additions and 2 deletions

View file

@ -162,6 +162,14 @@ ynh_local_curl $installUrl "u_email=$email" "u_firstname=$firstname" "u_name=$la
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION
#=================================================
# SECURE FILES AND DIRECTORIES
#=================================================
# Set permissions to app files
chown -R root: $final_path
chown -R $app $final_path/{public,cache,themes,plugins}
#================================================= #=================================================
# SETUP SSOWAT # SETUP SSOWAT
#================================================= #=================================================

View file

@ -68,7 +68,8 @@ ynh_system_user_create --username=$app
#================================================= #=================================================
# Restore permissions on app files # Restore permissions on app files
chown -R $app: $final_path chown -R root: $final_path
chown -R $app $final_path/{public,cache,themes,plugins}
#================================================= #=================================================
# RESTORE THE PHP-FPM CONFIGURATION # RESTORE THE PHP-FPM CONFIGURATION

View file

@ -177,7 +177,9 @@ ynh_store_file_checksum --file=$php_config
#================================================= #=================================================
# Set permissions on app files # Set permissions on app files
chown -R $app: $final_path chown -R root: $final_path
chown -R $app $final_path/{public,cache,themes,plugins}
#================================================= #=================================================
# SETUP SSOWAT # SETUP SSOWAT