Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
git-hyagi committed Aug 21, 2024
1 parent 457699e commit 1553350
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ jobs:
podman ps -a
podman images -a
podman logs pulp
echo "plottin'"
cat /var/lib/pgsql/data/log/*.log
echo "plottin"
podman exec pulp sh -c "cat /var/lib/pgsql/data/log/*.log"
cd images/compose
podman-compose logs
podman logs --tail=10000 compose_pulp_api_1
Expand Down
4 changes: 0 additions & 4 deletions images/s6_assets/init/postgres-init
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ if [ -d "${PGDATA}/base" -a -f "${PGDATA}/PG_VERSION" ]; then
su postgres -c "PGSETUP_INITDB_OPTIONS=\"-E ${ENCODING} --locale=${LOCALE} --auth=trust\" postgresql-upgrade ${PGDATA}" || { echo -e "${PREFIX} ${RED} Failed to upgrade the postgresql database${ENDCOLOR}" ; exit 1; }
fi
else
if [ ! -d "/var/run/postgresql" ]; then
mkdir -p /var/run/postgresql
chown postgres:postgres /var/run/postgresql
fi
echo -e "${PREFIX} ${GREEN}initdb -E UTF8 --locale=C.UTF-8 --pgdata ${PGDATA}${ENDCOLOR}"
su postgres -c "initdb -E UTF8 --locale=C.UTF-8 --pgdata=${PGDATA}"
STATUS=$?
Expand Down
5 changes: 5 additions & 0 deletions images/s6_assets/init/postgres-prepare
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ export C035="\e[35m"
export C036="\e[36m"
export C037="\e[37m"

if [ ! -d "/var/run/postgresql" ]; then
mkdir -p /var/run/postgresql
chown postgres:postgres /var/run/postgresql
fi

PG_ISREADY=1
while [ "$PG_ISREADY" != "0" ]; do
sleep 1
Expand Down

0 comments on commit 1553350

Please sign in to comment.