From 348dbb752a6a683091b2c018bf88101fc7454e50 Mon Sep 17 00:00:00 2001 From: Wes Lambert Date: Tue, 14 Jan 2020 13:48:57 +0000 Subject: [PATCH] source so-common --- salt/common/tools/sbin/so-allow | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/salt/common/tools/sbin/so-allow b/salt/common/tools/sbin/so-allow index d24350611..c6b756cd1 100644 --- a/salt/common/tools/sbin/so-allow +++ b/salt/common/tools/sbin/so-allow @@ -15,20 +15,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +. /usr/sbin/so-common + SKIP=0 -got_root() { - - # Make sure you are root - if [ "$(id -u)" -ne 0 ]; then - echo "This script must be run using sudo!" - exit 1 - fi - -} - -got_root - while getopts "abowi:" OPTION do case $OPTION in