HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2011-12-16 2823a8d9b91af26ac05d16ecb2e1c5b17a97daa3
killall returns false if nothing to kill
1 files modified
2 ■■■ changed files
hsarback/src/de/hsadmin/mods/user/UnixUserProcessorFactory.java 2 ●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/user/UnixUserProcessorFactory.java
@@ -56,7 +56,7 @@
        UnixUser user = (UnixUser) entity;
        String uid = user.getName();
        if (uid != null && uid.length() > 4) {
            Processor killProcessesProc = new ShellProcessor("killall -u " + uid);
            Processor killProcessesProc = new ShellProcessor("killall -u " + uid + " || echo -n 'no processes'");
            Processor userdelProc = null;
            if (user.isDefaultHomedir()) {
                userdelProc = new ShellProcessor("userdel " + uid + " && rm -rf '" + user.getHomedir() + "'");