minifirewall must be run as root

This commit is contained in:
Jérémy Lecour 2023-07-04 09:42:24 +02:00 committed by Jérémy Lecour
parent 69d89d5b92
commit 7e46c3cafc
Signed by: jlecour
SSH key fingerprint: SHA256:h+5LgHRKwN9lS0SsdVR5yZPeFlJE4Mt+8UtL4CcP8dY

View file

@ -37,6 +37,11 @@ DESC="Firewall designed for standalone server"
set -u
if [ "$(id -u)" -ne "0" ] ; then
echo "${PROGNAME} must be run as root." >&2
exit 1
fi
# Variables configuration
#########################