lib/poolparty/plugins/apache2/passenger_site.rb in fairchild-poolparty-1.3.5 vs lib/poolparty/plugins/apache2/passenger_site.rb in fairchild-poolparty-1.3.17
- old
+ new
@@ -32,10 +32,10 @@
if !File.exists?("#{dir}/#{name}/current")
# setup an initial symlink so apache will start even if there have not been any deploys yet
#has_site_directory "releases/initial/public"
#FIXME the following line is chef specific. It will fail with puppet
- has_link(:target_file => "#{dir}/#{name}/current", :to => "#{dir}/#{name}/releases/initial")
+ has_link(:target_file => "#{dir}/#{name}/current", :to => "#{dir}/#{name}/releases/initial", :requires => get_directory(site_directory))
end
log_dir = "#{site_directory}/shared/log"
appended_path "current"
else
\ No newline at end of file