mirror of
https://github.com/ThunixdotNet/makeuser.git
synced 2026-01-24 13:40:17 +00:00
adding unsubscribe from mailing list to rmuser
This commit is contained in:
5
rmuser
5
rmuser
@@ -1,7 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
LIST_NAME="thunix-join@lists.tildeverse.org"
|
||||||
|
|
||||||
echo "This will remove user account $1 from Thunix."
|
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 "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..."
|
echo "Killing user processes..."
|
||||||
sudo pkill -9 -U $1
|
sudo pkill -9 -U $1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user