updating with latest changes.
authorChris Sharp <csharp@georgialibraries.org>
Fri, 8 Aug 2014 20:32:45 +0000 (16:32 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Fri, 8 Aug 2014 20:32:45 +0000 (16:32 -0400)
update-libips.sh

index 9b6acf2..8d163b6 100755 (executable)
@@ -52,7 +52,7 @@ read -p "Please enter the start IP of the range (if a single IP, just enter that
 read -p "Please enter the end IP of the range (if a single IP, just enter that again): " END_IP
 echo
 echo "The new line will be:"
-echo -e "$NEW_SHORTNAME\t $START_IP $END_IP"
+echo -e "$NEW_SHORTNAME\t$START_IP\t$END_IP"
 echo
 read -p "Is this correct? (y/n) " ANSWER
 if [ "$ANSWER" = "y" ]; then
@@ -82,8 +82,6 @@ echo "You will need to restart Apache on all brick heads for the changes to take
 }
 
 EditCopy () {
-echo "Backing up the original file..."
-cp $LIB_IPS_TXT $LIB_IPS_TXT.`date +%Y%m%d%H%M%S`
 $EDITOR $LIB_IPS_TXT
 read -p "Would you like to copy the file to the other brick heads? (y/n) " COPYFILE
 if [ "$COPYFILE" = "y" ]; then