diff --git a/conf/php-fpm.conf b/conf/php-fpm.conf index eff4ac0..ab1a471 100644 --- a/conf/php-fpm.conf +++ b/conf/php-fpm.conf @@ -21,7 +21,7 @@ ; Note: The user is mandatory. If the group is not set, the default user's group ; will be used. user = __USER__ -group = www-data +group = __USER__ ; The address on which to accept FastCGI requests. ; Valid syntaxes are: diff --git a/scripts/install b/scripts/install index 6b38ff1..e0c5949 100755 --- a/scripts/install +++ b/scripts/install @@ -87,6 +87,10 @@ chmod 750 "$final_path" chmod -R o-rwx "$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 #================================================= diff --git a/scripts/restore b/scripts/restore index fac5f29..aa9e6a2 100755 --- a/scripts/restore +++ b/scripts/restore @@ -69,6 +69,10 @@ chmod 750 "$final_path" chmod -R o-rwx "$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 #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index fc37c0f..689feaa 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -118,6 +118,10 @@ chmod 750 "$final_path" chmod -R o-rwx "$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 #=================================================