kill connections before removing user

This commit is contained in:
Yannik Schmidt
2021-08-31 00:56:18 +02:00
parent f10c87bb97
commit e90cec3e52

View File

@@ -1,4 +1,5 @@
#!/bin/bash #!/bin/bash
pkill -u ${1} --signal kill
rm -rf /home/${1} rm -rf /home/${1}
userdel ${1} userdel ${1}