Skip to content

Instantly share code, notes, and snippets.

@adamhjk
Forked from anonymous/gist:239082
Created November 19, 2009 22:09
Show Gist options
  • Save adamhjk/239087 to your computer and use it in GitHub Desktop.
Save adamhjk/239087 to your computer and use it in GitHub Desktop.
link "/etc/pure-ftpd/auth/70puredb" do
to "../conf/PureDB"
notifies :restart, resources(:service => "pure-ftpd")
# If the symlink exists and it points to the "TO" file then don't do anything
not_if do
File.symlink?("#{name}") & (File.readlink("#{name}") == to)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment