Fixing die code for profile-clean. Adding folder for profile-gui-clean.
This commit is contained in:
parent
81ecbffc53
commit
fb78c4431e
@ -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.");
|
||||
}
|
||||
|
||||
|
||||
|
@ -30,7 +30,8 @@ sub profile_gui_clean {
|
||||
".gconf",
|
||||
".kde",
|
||||
".gnome2",
|
||||
".gnome2_private"
|
||||
".gnome2_private",
|
||||
".local"
|
||||
);
|
||||
|
||||
foreach (@directories) {
|
||||
|
Loading…
Reference in New Issue
Block a user