diff --git a/root/etc/e-smith/events/actions/profile-clean b/root/etc/e-smith/events/actions/profile-clean index 345da94..aea79fb 100755 --- a/root/etc/e-smith/events/actions/profile-clean +++ b/root/etc/e-smith/events/actions/profile-clean @@ -24,7 +24,7 @@ sub profile_clean { my ($username) = @_; my @u = $db_users->get($username) || die("No user record for '$username'."); - system("find /var/lib/nethserver/home/$username -delete"); + system("find /var/lib/nethserver/home/$username -delete") == 0 || die("Error cleaning up profile for $username. Exiting."); } diff --git a/root/etc/e-smith/events/actions/profile-gui-clean b/root/etc/e-smith/events/actions/profile-gui-clean index de56b7c..34b55b2 100755 --- a/root/etc/e-smith/events/actions/profile-gui-clean +++ b/root/etc/e-smith/events/actions/profile-gui-clean @@ -30,7 +30,8 @@ sub profile_gui_clean { ".gconf", ".kde", ".gnome2", - ".gnome2_private" + ".gnome2_private", + ".local" ); foreach (@directories) {