Removing tox settings as a function
This commit is contained in:
parent
5e5630cc8f
commit
5de7b0cf29
|
@ -465,6 +465,16 @@ function configure_zeronet_id {
|
||||||
echo $'Update of ZeroID completed' >> $INSTALL_LOG
|
echo $'Update of ZeroID completed' >> $INSTALL_LOG
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function amnesic_remove_tox {
|
||||||
|
echo $'Clearing qtox 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
|
||||||
|
}
|
||||||
|
|
||||||
function configure_toxcore {
|
function configure_toxcore {
|
||||||
echo $'Configuring toxcore' >> $INSTALL_LOG
|
echo $'Configuring toxcore' >> $INSTALL_LOG
|
||||||
|
|
||||||
|
@ -491,13 +501,7 @@ function configure_toxcore {
|
||||||
echo "$TOX_PUBLIC_KEY" > $TOX_BOOTSTRAP_ID_FILE
|
echo "$TOX_PUBLIC_KEY" > $TOX_BOOTSTRAP_ID_FILE
|
||||||
echo $'Configured toxcore' >> $INSTALL_LOG
|
echo $'Configured toxcore' >> $INSTALL_LOG
|
||||||
|
|
||||||
echo $'Clearing toxic client settings' >> $INSTALL_LOG
|
amnesic_remove_tox
|
||||||
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
|
echo $'toxic client configured' >> $INSTALL_LOG
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -537,6 +541,8 @@ function mesh_amnesic {
|
||||||
|
|
||||||
echo '#!/bin/bash' > /usr/bin/amnesic
|
echo '#!/bin/bash' > /usr/bin/amnesic
|
||||||
echo '' >> /usr/bin/amnesic
|
echo '' >> /usr/bin/amnesic
|
||||||
|
echo "shred -zu /var/log/${PROJECT_NAME}*" >> /usr/bin/amnesic
|
||||||
|
echo '' >> /usr/bin/amnesic
|
||||||
echo 'MY_USERNAME=$1' >> /usr/bin/amnesic
|
echo 'MY_USERNAME=$1' >> /usr/bin/amnesic
|
||||||
echo -n "${PROJECT_NAME}-image-mesh " >> /usr/bin/amnesic
|
echo -n "${PROJECT_NAME}-image-mesh " >> /usr/bin/amnesic
|
||||||
echo '$MY_USERNAME amnesic' >> /usr/bin/amnesic
|
echo '$MY_USERNAME amnesic' >> /usr/bin/amnesic
|
||||||
|
|
Loading…
Reference in New Issue