diff options
Diffstat (limited to 'postgresql-setup.in')
-rw-r--r-- | postgresql-setup.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/postgresql-setup.in b/postgresql-setup.in index 7d5a0eb..20d5ad6 100644 --- a/postgresql-setup.in +++ b/postgresql-setup.in @@ -793,6 +793,16 @@ debug "final pgport: $pgport" script_result=0 +if @MOUNTPOINT@ -q "$pgdata" || @MOUNTPOINT@ -q "$(dirname "$pgdata")"; then + warn $"Note that either your data directory '$pgdata' or" + warn_q $"the parent directory '$(dirname "$pgdata")'" + warn_q $"is a direct mountpoint. This is usually bad idea and your" + warn_q $"filesystem layout should ideally look like:" + warn_q $"/ROOT_OWNED_MOUNTPOINT/POSTGRES_OWNED_DIRECTORY/DATADIR." + warn_q $"See the upstream documentation for more info:" + warn_q $"http://www.postgresql.org/docs/@PGMAJORVERSION@/static/creating-cluster.html" +fi + # See how we were called. case "$option_mode" in initdb) |