Skip to content
Snippets Groups Projects
Commit 06d121e7 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

show message if no sudo permissions on onehost

parent 595eb8f3
Branches
No related tags found
1 merge request!103show message if no sudo permissions on onehost
......@@ -8,13 +8,14 @@
#
# ----------------------------------------------------------------------
# 2023-06-09 v1.0 <axel.hahn@unibe.ch> initial version
# 2023-06-12 v1.1 <axel.hahn@unibe.ch> show message if no sudo permissions on onehost command exist
# ======================================================================
. $(dirname $0)/inc_pluginfunctions
self_APPNAME=$( basename $0 | tr [:lower:] [:upper:] )
self_APPVERSION=1.0
self_APPVERSION=1.1
# ----------------------------------------------------------------------
# functions
......@@ -75,6 +76,7 @@ cmdout=$( sudo onehost list --csv 2>&1 )
if ! grep "ID,NAME" <<< "$cmdout" >/dev/null; then
ph.setStatus "unknown"
echo "UNKNOWN: sudo onehost failed."
echo "$cmdout"
ph.exit
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment