Merge pull request #1787 from YunoHost/fix-logs

Fix logs directories access
This commit is contained in:
Alexandre Aubin 2024-02-29 18:30:26 +01:00 committed by GitHub
commit a735f68cc9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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.