mirror of
https://github.com/openstreetmap/osmosis.git
synced 2026-01-14 00:36:36 +00:00
Upgrade test db server from Fedora 38 to 41
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
FROM fedora:38
|
||||
FROM fedora:41
|
||||
|
||||
# Install UTF8 locale support
|
||||
RUN dnf install -y glibc-langpack-en
|
||||
|
||||
@ -1,9 +1,16 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
DATADIR="/var/lib/pgsql/data"
|
||||
|
||||
# test if DATADIR has content
|
||||
if [ ! "$(ls -A $DATADIR)" ]; then
|
||||
# Create directory for the pgsql lock file. If we don't create this the lock file creation fails and the server startup fails.
|
||||
# This has only been required since Fedora 41 (not required in Fedora 38).
|
||||
mkdir /var/run/postgresql
|
||||
chown postgres:postgres /var/run/postgresql
|
||||
|
||||
echo "Initializing Postgres Database at $DATADIR"
|
||||
su postgres sh -lc "initdb --encoding=UTF-8 --locale=en_US.UTF-8"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user