We need to make a backup before manually editing!
authorChris Sharp <csharp@georgialibraries.org>
Fri, 8 Aug 2014 20:31:04 +0000 (16:31 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Fri, 8 Aug 2014 20:31:04 +0000 (16:31 -0400)
update-libips.sh

index b9e8349..9b6acf2 100755 (executable)
@@ -82,6 +82,8 @@ 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