From 848fd67d87245f34f34d672468c1b8589dbcf376 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Wed, 20 Apr 2022 12:02:18 -0700 Subject: [PATCH] explicitly set root on sudo command, just being verbose no change in functionality --- bin/vhost.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/vhost.sh b/bin/vhost.sh index 1089684..5ee488a 100755 --- a/bin/vhost.sh +++ b/bin/vhost.sh @@ -4,8 +4,7 @@ # any script that includes this conf file will force user to be root if [ "$USER" != "root" ]; then - #exec sudo -u root $0 $@ - exec sudo $0 $@ + exec sudo -u root $0 $@ fi # constants