mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-03-16 14:57:48 +08:00
common.sh: print message when script cannot run
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
@@ -32,6 +32,7 @@ fi
|
|||||||
|
|
||||||
if test -z "$NO_NEED_ROOT";then
|
if test -z "$NO_NEED_ROOT";then
|
||||||
if test "$(id -u)" != "0";then
|
if test "$(id -u)" != "0";then
|
||||||
|
echo "You need to run this script as root"
|
||||||
exit 77
|
exit 77
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user