From fb78c4431e95baa8ab5d62a4be50cace41c55cc4 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Mon, 19 Mar 2018 23:31:23 +0100 Subject: [PATCH] Fixing die code for profile-clean. Adding folder for profile-gui-clean. --- root/etc/e-smith/events/actions/profile-clean | 2 +- root/etc/e-smith/events/actions/profile-gui-clean | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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) {