Remove keys in a safer way
This commit is contained in:
parent
2a9f449460
commit
7ca018673b
|
@ -115,6 +115,16 @@ if [ -d /etc/turnserver ]; then
|
||||||
sed -i "/${MY_USERNAME}:/d" /etc/turnserver/turnusers.txt
|
sed -i "/${MY_USERNAME}:/d" /etc/turnserver/turnusers.txt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# remove gpg keys
|
||||||
|
if [ -d /home/$MY_USERNAME/.gnupg ]; then
|
||||||
|
shred -u /home/$MY_USERNAME/.gnupg/*
|
||||||
|
fi
|
||||||
|
|
||||||
|
# remove ssh keys
|
||||||
|
if [ -d /home/$MY_USERNAME/.ssh ]; then
|
||||||
|
shred -u /home/$MY_USERNAME/.ssh/*
|
||||||
|
fi
|
||||||
|
|
||||||
userdel -r $MY_USERNAME
|
userdel -r $MY_USERNAME
|
||||||
|
|
||||||
if [ -d /home/$MY_USERNAME ]; then
|
if [ -d /home/$MY_USERNAME ]; then
|
||||||
|
|
Loading…
Reference in New Issue