Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

puppet: Only restart PostgreSQL if there is a datadir to read.

Alex Vandiver311dfdaa386d
diff --git a/puppet/zulip/manifests/profile/postgresql.pp b/puppet/zulip/manifests/profile/postgresql.pp
index 3af4fdb6901..891da04a280 100644
--- a/puppet/zulip/manifests/profile/postgresql.pp
+++ b/puppet/zulip/manifests/profile/postgresql.pp
@@ -77,5 +77,6 @@ class zulip::profile::postgresql {
require => $require,
refreshonly => true,
subscribe => [ File[$postgresql_conf_file] ],
+ onlyif => "test -d ${zulip::postgresql_base::postgresql_datadir}",
}
}