Ticket #432: user-homedir.patch
| File user-homedir.patch, 1.4 kB (added by tim, 2 years ago) |
|---|
-
lib/puppet/type/user.rb
old new 34 34 provider.delete 35 35 end 36 36 37 newvalue(:purged, :event => :user_removed) do 38 provider.delete 39 end 40 37 41 desc "The basic state that the object should be in." 38 42 39 43 # If they're talking about the thing at all, they generally want to -
lib/puppet/provider/nameservice/objectadd.rb
old new 12 12 end 13 13 14 14 def deletecmd 15 [command(:delete), @model[:name]] 15 if @model[:ensure] == "purged" 16 [command(:delete), "-r", @model[:name]] 17 else 18 [command(:delete), @model[:name]] 16 19 end 17 20 18 21 # Determine the flag to pass to our command. -
lib/puppet/provider/user/useradd.rb
old new 37 37 cmd << "-o" 38 38 end 39 39 40 cmd << "-m" 41 40 42 cmd << @model[:name] 41 43 42 44 cmd