summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2015-08-14 14:57:09 -0600
committermo khan <mo@mokhan.ca>2015-08-14 14:57:09 -0600
commitb20d909dee89d67fd1145ed3b2d57e55a67282d5 (patch)
treed4251b8b2fc61bd495f9e972a708a14ccdc3eb76
parent27a5e9a45f56362898664a84809635ee116fb858 (diff)
check if base created.
-rw-r--r--config/chef_apply.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/chef_apply.rb b/config/chef_apply.rb
index 9657da3..9bdd100 100644
--- a/config/chef_apply.rb
+++ b/config/chef_apply.rb
@@ -97,7 +97,7 @@ end
bash "configure_postgres" do
user "root"
- not_if { ::Dir.exist?("/var/lib/pgsql/data") }
+ not_if { ::File.exist?("/var/lib/pgsql/data/base") }
code <<-SCRIPT
postgresql-setup initdb
SCRIPT