build-add-hosts

=build_add_hosts= code format="bash"
 * 1) !/bin/bash


 * 1) Add server to push.sudoers and do a singlepush

echo -ne "Enter FQDN: \c" read FQDN

SHOST=`echo $FQDN | tr "." " " | awk '{print $1}'` DOMAIN=`echo $FQDN | tr "." " " | awk '{print $2"."$3"."$4}'`

echo -ne "Enter 1 for GBIP, 2 for everything else: \c" read ANSWER

echo $FQDN >> /etc/msudoers/push.sudoers

if [ "$ANSWER" = "1" ]; then ~u3x7503/scripts/copy_sudoers $SHOST ~u3x7503/scripts/copy_sudoers $FQDN else /etc/msudoers/singlepush.sh $SHOST /etc/msudoers/singlepush.sh $FQDN fi code