Skip to content

Instantly share code, notes, and snippets.

Created November 19, 2009 22:03

Revisions

  1. @invalid-email-address Anonymous created this gist Nov 19, 2009.
    6 changes: 6 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    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