From 62b0d755ad6604f11d6f1cf9b3f99903895ff1e9 Mon Sep 17 00:00:00 2001 From: myvesta <38690722+myvesta@users.noreply.github.com> Date: Sun, 2 Aug 2020 01:40:26 +0200 Subject: [PATCH] check if user is root in v-update-host-certificate --- bin/v-update-host-certificate | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bin/v-update-host-certificate b/bin/v-update-host-certificate index 71a87709..9da49aca 100755 --- a/bin/v-update-host-certificate +++ b/bin/v-update-host-certificate @@ -11,12 +11,11 @@ #----------------------------------------------------------# whoami=$(whoami) -if [ "$whoami" != "root" ] && [ "$whoami" != "admin" ] ; then - echo "You must be root or admin to execute this script"; - exit 1; +if [ "$whoami" != "root" ]; then + echo "You must be root to execute this script" + exit 1 fi - # Argument definition user=$1 hostname=$2