Safely remove previous tox identity

This commit is contained in:
Bob Mottram 2016-07-21 22:55:16 +01:00
parent d5e5d26d06
commit f8c28d5183
1 changed files with 3 additions and 0 deletions

View File

@ -488,6 +488,9 @@ function configure_toxcore {
echo $'Clearing toxic client settings' >> $INSTALL_LOG
if [ -d /home/${MY_USERNAME}/.config/tox ]; then
shred -zu /home/${MY_USERNAME}/.config/tox/*.tox
shred -zu /home/${MY_USERNAME}/.config/tox/*.db
shred -zu /home/${MY_USERNAME}/.config/tox/*.ini
rm -rf /home/${MY_USERNAME}/.config/tox
fi
echo $'toxic client configured' >> $INSTALL_LOG