mirror of
https://github.com/ThunixdotNet/makeuser.git
synced 2026-11-04 19:55:38 +00:00
adding unsubscribe from mailing list to rmuser
This commit is contained in:
1 parent
01818e1a25
commit
4cc31809f4
1 file changed
+5
@@ -1,7 +1,12 @@
|
||||
#!/bin/bash
|
||||
LIST_NAME="[email protected]"
|
||||
|
||||
echo "This will remove user account $1 from Thunix."
|
||||
echo "It is assumed the user account has been un-enforced in Ansible as well."
|
||||
|
||||
echo "Unsubscribe from this list..."
|
||||
echo "From: $1 Subject: unsubscribe " | sudo -u $1 mail $LIST_NAME
|
||||
|
||||
echo "Killing user processes..."
|
||||
sudo pkill -9 -U $1
|
||||
|
||||
|
||||
Reference in new issue
Block a user