Skip to content

Instantly share code, notes, and snippets.

Created November 19, 2009 22:03
Show Gist options
  • Save anonymous/239082 to your computer and use it in GitHub Desktop.
Save anonymous/239082 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}") and File.readlink("#{name}") == to end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment