Remove cryptpad datastore when resetting mesh identity

This commit is contained in:
Bob Mottram 2017-10-28 09:56:38 +01:00
parent 8afa0b062f
commit 76fc3d2148
1 changed files with 5 additions and 0 deletions

View File

@ -890,6 +890,11 @@ if [ -f $MESH_INSTALL_SETUP ]; then
rm -rf /etc/openvpn/easy-rsa/keys/*
fi
# Remove cryptpad datastore
if [ -d $CRYPTPAD_DIR/datastore ]; then
rm -rf $CRYPTPAD_DIR/datastore
fi
echo $'Beginning mesh node setup' >> $INSTALL_LOG
if [ -d /home/$MY_USERNAME/.config ]; then