Fix logs directories access

This commit is contained in:
tituspijean 2024-02-29 18:25:14 +01:00
parent 4ebe1edf00
commit 349d219a57
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720

View file

@ -88,7 +88,7 @@ EOF
# Make sure permissions are correct (otherwise the config file could be ignored and the corresponding logs never rotated) # Make sure permissions are correct (otherwise the config file could be ignored and the corresponding logs never rotated)
chmod 644 "/etc/logrotate.d/$app" chmod 644 "/etc/logrotate.d/$app"
mkdir -p "/var/log/$app" mkdir -p "/var/log/$app"
chmod 640 "/var/log/$app" chmod 750 "/var/log/$app"
} }
# Remove the app's logrotate config. # Remove the app's logrotate config.