Fixing die code for profile-clean. Adding folder for profile-gui-clean.

This commit is contained in:
Emiliano Vavassori 2018-03-19 23:31:23 +01:00
parent 81ecbffc53
commit fb78c4431e
2 changed files with 3 additions and 2 deletions

View File

@ -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.");
}

View File

@ -30,7 +30,8 @@ sub profile_gui_clean {
".gconf",
".kde",
".gnome2",
".gnome2_private"
".gnome2_private",
".local"
);
foreach (@directories) {