fix start ssh sequence

This commit is contained in:
Bernhard Radermacher
2026-02-23 11:29:43 +01:00
parent 59857e2bdd
commit 1acea2348d
2 changed files with 5 additions and 3 deletions

View File

@@ -6,7 +6,9 @@ RUN apt-get update && \
&& \
rm -rf /var/lib/apt/lists/*
RUN install --verbose --directory --owner postgres --group postgres --mode 1777 /etc/repmgr
RUN install --verbose --directory --owner postgres --group postgres --mode 1777 /etc/repmgr && \
ln -s /etc/repmgr/repmgr.conf /etc/repmgr.conf
VOLUME /etc/repmgr
RUN apt-get update && \

View File

@@ -125,6 +125,8 @@ repmgr_setup_conf() {
}
sudo service ssh start
docker_setup_env
docker_create_db_directories
if [ "$(id -u)" = '0' ]; then
@@ -184,8 +186,6 @@ if [[ ! -s "$PGDATA/PG_VERSION" ]]; then
docker_temp_server_stop
fi
sudo service ssh start
set -m
postgres &