From 9eb874680d9e78f0997f0249fb74d147f4d20752 Mon Sep 17 00:00:00 2001 From: "Jose M. Guisado" Date: Thu, 22 Sep 2022 18:19:24 +0200 Subject: oglivecli: more helpful usage error message Valid commands depend on the "access level" determined by: - You are root (root) - You can read /opt/opengnsys/www/controlacceso.php (web) Users might not know this, so invite to run as sudo if running some command is not valid because of this. --- server/bin/oglivecli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/bin') diff --git a/server/bin/oglivecli b/server/bin/oglivecli index 1c064ae7..beaaf0d1 100755 --- a/server/bin/oglivecli +++ b/server/bin/oglivecli @@ -451,7 +451,7 @@ case "$ACCESS" in esac case "$1" in $CMDS) COMMAND="${1/-/}"; shift; $COMMAND "$@" ;; - *) raiseError usage ;; + *) echo "You need to be root to run this command." && exit 1 ;; esac exit $? -- cgit v1.2.3-18-g5258