Fix permissions messages and test parms

This commit is contained in:
Adam Outler
2025-10-29 00:08:09 +00:00
parent 7ddb7d293e
commit b36b3be176
2 changed files with 13 additions and 7 deletions

View File

@@ -67,8 +67,9 @@ EOF
chown -R netalertx:netalertx ${READ_WRITE_PATHS}
# Set directory and file permissions for all read-write paths
find ${READ_WRITE_PATHS} -type d -exec chmod 700 {} +
find ${READ_WRITE_PATHS} -type f -exec chmod 600 {} +
find ${READ_WRITE_PATHS} -type d -exec chmod 700 {} + 2>/dev/null
find ${READ_WRITE_PATHS} -type f -exec chmod 600 {} + 2>/dev/null
echo Permissions fixed for read-write paths. Please restart the container as user 20211.
sleep infinity & wait $!; exit 211
fi