optimized events
This commit is contained in:
@@ -87,6 +87,8 @@ install -d -m 0755 \
|
||||
"$WATERMAPS_DATA_DIR" \
|
||||
"$WATERMAPS_DATA_DIR/geofabrik" \
|
||||
"$WATERMAPS_DATA_DIR/local" \
|
||||
"$WATERMAPS_DATA_DIR/postgres" \
|
||||
"$WATERMAPS_DATA_DIR/tmp" \
|
||||
"$WATERMAPS_DATA_DIR/certbot" \
|
||||
"$WATERMAPS_DATA_DIR/certbot/www" \
|
||||
"$WATERMAPS_DATA_DIR/certbot/letsencrypt" \
|
||||
@@ -95,6 +97,12 @@ install -d -m 0755 \
|
||||
"$WATERMAPS_RUNTIME_DIR/nginx/conf.d" \
|
||||
"$WATERMAPS_RUNTIME_DIR/locks"
|
||||
|
||||
# postgis/postgis uses the Debian postgres UID/GID 999. Keeping PGDATA on the
|
||||
# mounted Hetzner volume makes event data survive image deployments and host
|
||||
# reboots; the official entrypoint can still repair ownership inside PGDATA.
|
||||
chown 999:999 "$WATERMAPS_DATA_DIR/postgres"
|
||||
chmod 0700 "$WATERMAPS_DATA_DIR/postgres"
|
||||
|
||||
if [[ ! -f "$WATERMAPS_RUNTIME_DIR/nginx/conf.d/default.conf" ]]; then
|
||||
install -m 0644 \
|
||||
"$WM_DEPLOY_DIR/nginx/bootstrap.conf" \
|
||||
|
||||
Reference in New Issue
Block a user