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

add acl for www-data instead

This commit is contained in:
Kay0u 2021-10-29 15:29:25 +02:00
parent 59a96fdae0
commit 3ed25c02ee
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D
4 changed files with 13 additions and 1 deletions

View file

@ -21,7 +21,7 @@
; Note: The user is mandatory. If the group is not set, the default user's group ; Note: The user is mandatory. If the group is not set, the default user's group
; will be used. ; will be used.
user = __USER__ user = __USER__
group = www-data group = __USER__
; The address on which to accept FastCGI requests. ; The address on which to accept FastCGI requests.
; Valid syntaxes are: ; Valid syntaxes are:

View file

@ -87,6 +87,10 @@ chmod 750 "$final_path"
chmod -R o-rwx "$final_path" chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path" chown -R $app:www-data "$final_path"
# https://dotclear.org/documentation/2.0/admin/install
mkdir -p "$final_path/"{cache,public}
setfacl -m d:u:www-data:rwx "$final_path/"{cache,public}
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION
#================================================= #=================================================

View file

@ -69,6 +69,10 @@ chmod 750 "$final_path"
chmod -R o-rwx "$final_path" chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path" chown -R $app:www-data "$final_path"
# https://dotclear.org/documentation/2.0/admin/install
mkdir -p "$final_path/"{cache,public}
setfacl -m d:u:www-data:rwx "$final_path/"{cache,public}
#================================================= #=================================================
# RESTORE THE PHP-FPM CONFIGURATION # RESTORE THE PHP-FPM CONFIGURATION
#================================================= #=================================================

View file

@ -118,6 +118,10 @@ chmod 750 "$final_path"
chmod -R o-rwx "$final_path" chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path" chown -R $app:www-data "$final_path"
# https://dotclear.org/documentation/2.0/admin/install
mkdir -p "$final_path/"{cache,public}
setfacl -m d:u:www-data:rwx "$final_path/"{cache,public}
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION
#================================================= #=================================================