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