Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packaging/common/cfengine-hub/postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,14 @@ init_postgres_dir()
cp -a "$BACKUP_DIR/data/recovery.conf" "$PREFIX/state/pg/data/recovery.conf"
chown cfpostgres "$PREFIX/state/pg/data/recovery.conf"
fi

# Make sure the 'pg_arch' directory exists if it existed before the
# upgrade. This directory is used in HA setups. Files from the directory
# should be discarded so we can just recreate the directory if needed.
if [ -d "$BACKUP_DIR/data/pg_arch" ]; then
mkdir "$PREFIX/state/pg/data/pg_arch"
chown cfpostgres:cfpostgres "$PREFIX/state/pg/data/pg_arch"
fi
fi
}

Expand Down