Skip to content

Commit 17a4041

Browse files
author
Matthew Fisher
committed
Merge pull request #104 from bacongobbler/94-fix-recovery-errors
fix(rootfs): create new recovery baseline after restore
2 parents f462a75 + db4cd9d commit 17a4041

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

rootfs/docker-entrypoint-initdb.d/003_restore_from_backup.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ EOF
4848
-o "-c listen_addresses=''" \
4949
-t 1200 \
5050
-w start
51-
else
52-
echo "No backups found. Performing an initial backup..."
53-
gosu postgres envdir "$WALE_ENVDIR" wal-e backup-push "$PGDATA"
5451
fi
5552

53+
echo "Performing an initial backup..."
54+
gosu postgres envdir "$WALE_ENVDIR" wal-e backup-push "$PGDATA"
55+
5656
# ensure $PGDATA has the right permissions
5757
chown -R postgres:postgres "$PGDATA"
5858
chmod 0700 "$PGDATA"

0 commit comments

Comments
 (0)