Making the script executable
authorChris Sharp <csharp@georgialibraries.org>
Wed, 14 Jun 2017 12:15:36 +0000 (08:15 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 21 Mar 2022 20:51:06 +0000 (16:51 -0400)
update-installed.sh

index 8fcdac9..fb67676 100755 (executable)
@@ -11,6 +11,7 @@ if [ ! -d "$PROD_BACKUP" ]; then
        echo "Production backup directory $PROD_BACKUP not found, creating it..."
        mkdir "$PROD_BACKUP"
 fi
+
 rsync -auv "$OSRF_WEB_ROOT"/"$REPO_NAME"/ "$PROD_BACKUP"/
 date > "$PROD_BACKUP"/last_sync_date
 
@@ -19,11 +20,6 @@ sed -i 's/next.gapines.org/gapines.org/' $GIT_LOCATION/config/production.config.
 
 # now copy the git files over to the web dir
 rsync -auv --exclude="install*.sh" --exclude=".git" "$GIT_LOCATION"/ "$OSRF_WEB_ROOT"/"$REPO_NAME"/
-rsync -auv "$OSRF_WEB_ROOT"/"$REPO_NAME"/ "$PROD_BACKUP"/
-date > "$PROD_BACKUP"/last_sync_date
-
-# now copy the git files over to the web dir
-rsync -auv --exclude="install*.sh" --exclude=".git" "GIT_LOCATION"/ "$OSRF_WEB_ROOT"/"$REPO_NAME"/
 
 # and now do the rest of the bricks
 for i in $BRICK_HEADS; do