From: Chris Sharp Date: Fri, 8 Aug 2014 20:31:04 +0000 (-0400) Subject: We need to make a backup before manually editing! X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8a275956a18a6f0b7b364a2c28c4b854b2c3e52f;p=contrib%2Fpines.git We need to make a backup before manually editing! --- diff --git a/update-libips.sh b/update-libips.sh index b9e8349..9b6acf2 100755 --- a/update-libips.sh +++ b/update-libips.sh @@ -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