summaryrefslogtreecommitdiffstats
path: root/debian/patches/initdb-startup-message
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/initdb-startup-message')
-rw-r--r--debian/patches/initdb-startup-message15
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/patches/initdb-startup-message b/debian/patches/initdb-startup-message
new file mode 100644
index 0000000..c164ad9
--- /dev/null
+++ b/debian/patches/initdb-startup-message
@@ -0,0 +1,15 @@
+Author: Christoph Berg <myon@debian.org>
+Description: Debian-specific cluster startup message from initdb
+Forwarded: No, Debian specific
+
+--- a/src/bin/initdb/initdb.c
++++ b/src/bin/initdb/initdb.c
+@@ -3411,7 +3411,7 @@ main(int argc, char *argv[])
+
+ printf(_("\nSuccess. You can now start the database server using:\n\n"
+ " %s\n\n"),
+- start_db_cmd->data);
++ getenv("CLUSTER_START_COMMAND") ? getenv("CLUSTER_START_COMMAND") : start_db_cmd->data);
+
+ destroyPQExpBuffer(start_db_cmd);
+