mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-15 22:51:37 -07:00
/data and /tmp standarization
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
#!/bin/bash
|
||||
# read-only-mode.sh detects and warns if running read-write on the root filesystem.
|
||||
|
||||
# This check is skipped in devcontainer mode as the devcontainer is not set up to run
|
||||
# read-only and this would always trigger a warning. RW is required for development
|
||||
# in the devcontainer.
|
||||
if [ "${NETALERTX_DEBUG}" == "1" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Check if the root filesystem is mounted as read-only
|
||||
if ! awk '$2 == "/" && $4 ~ /ro/ {found=1} END {exit !found}' /proc/mounts; then
|
||||
cat <<EOF
|
||||
|
||||
Reference in New Issue
Block a user