Skip to content

Commit

Permalink
don't tar up user home directories if /home is already the right kind…
Browse files Browse the repository at this point in the history
… of mount
  • Loading branch information
jstange committed Apr 15, 2015
1 parent fb6ce94 commit 36278e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cookbooks/mu-tools/recipes/apply_security.rb
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,8 @@

execute "tar up any old userdirs" do
command "sudo tar czf /tmp/moveusers.tgz -C /home ."
not_if { ::File.exists?("/tmp/moveusers.tgz") }
# not_if { ::File.exists?("/tmp/moveusers.tgz") }
not_if "grep '^#{node[:application_attributes][:home][:mount_device]} #{node[:application_attributes][:home][:mount_directory]}' /etc/mtab"
end

mount node[:application_attributes][:home][:mount_directory] do
Expand Down

0 comments on commit 36278e8

Please sign in to comment.