diff options
| author | mo khan <mo@mokhan.ca> | 2015-08-14 14:57:09 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2015-08-14 14:57:09 -0600 |
| commit | b20d909dee89d67fd1145ed3b2d57e55a67282d5 (patch) | |
| tree | d4251b8b2fc61bd495f9e972a708a14ccdc3eb76 | |
| parent | 27a5e9a45f56362898664a84809635ee116fb858 (diff) | |
check if base created.
| -rw-r--r-- | config/chef_apply.rb | 2 |
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 |
