Non-root launch

This commit is contained in:
Adam Outler
2025-09-25 14:10:06 -04:00
parent 8ed21a8c07
commit dfcc375fba
8 changed files with 61 additions and 34 deletions

View File

@@ -1,8 +1,4 @@
#!/bin/bash
echo "Initializing backend..."
# Future backend initialization steps can go here.
# For now, we'll just ensure permissions are correct.
chown -R nginx:www-data "${NETALERTX_APP}"
chmod 750 "${NETALERTX_APP}"/config "${NETALERTX_APP}"/log "${NETALERTX_APP}"/db
find "${NETALERTX_APP}"/config "${NETALERTX_APP}"/log "${NETALERTX_APP}"/db -type f -exec chmod 640 {} \;
echo "Backend initialized."