commit 331d4ce549c9b3ec5b7a563988b3ad895dbe1d38 parent d43785607baa9dd2296cd90742b3d20ca865fb55 Author: Jan Pobrislo <ccx@webprojekty.cz> Date: Sat, 28 Jun 2014 05:40:59 +0200 more rigorous checks for postgresql_cluster Diffstat:
| M | zsh-functions/confz_postgresql_init | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/zsh-functions/confz_postgresql_init b/zsh-functions/confz_postgresql_init @@ -38,7 +38,7 @@ confz_postgresql_cluster_check() { defvar initdb initdb defvar initdb_opts '' - [[ -d $vars[data_dir] && -d $vars[pgdata] ]] + [[ -d $vars[data_dir]/base && -e $vars[pgdata]/postgresql.conf ]] } confz_postgresql_cluster_do() {