From 7756826eb3ed493e039865ab60c547c2206360c4 Mon Sep 17 00:00:00 2001 From: szaimen Date: Sat, 12 Feb 2022 01:02:39 +0100 Subject: [PATCH] revert the removal for now since it would break all instances Signed-off-by: szaimen --- Containers/postgresql/start.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Containers/postgresql/start.sh b/Containers/postgresql/start.sh index 02772799..aad235f5 100644 --- a/Containers/postgresql/start.sh +++ b/Containers/postgresql/start.sh @@ -18,11 +18,11 @@ if ! [ -w "$DUMP_DIR" ]; then exit 1 fi -# Delete the datadir once (needed for the migration from debian to alpine) -if ! [ -f "$DUMP_DIR/initial-cleanup-done" ]; then - rm -rf "${DATADIR:?}/"* - touch "$DUMP_DIR/initial-cleanup-done" -fi +# # Delete the datadir once (needed for the migration from debian to alpine) +# if ! [ -f "$DUMP_DIR/initial-cleanup-done" ]; then +# rm -rf "${DATADIR:?}/"* +# touch "$DUMP_DIR/initial-cleanup-done" +# fi # Test if some things match # shellcheck disable=SC2235