#!/bin/bash
ifconfig | grep inet | head -n1 | tr -s ' ' | cut -d" " -f3
ifconfig | grep inet | head -n1 | tr -s ' ' | cut -d" " -f3 | grep '3' > /dev/null
TEST=$(echo $?)
if [ $TEST -eq 0 ];then
date
else
for i in {0..100};do
useradd mageedu_$i
done
fi
cat /etc/passwd | grep '/bin/bash' | cut -d":" -f1
yum install -y nginx
systemct enable nginx