Merge pull request #219 from Security-Onion-Solutions/allow_script

so-allow: source so-common
This commit is contained in:
Mike Reeves
2020-01-14 08:59:13 -05:00
committed by GitHub

View File

@@ -15,20 +15,10 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. /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