Browse Source

Remove cryptpad datastore when resetting mesh identity

Bob Mottram 7 years ago
parent
commit
76fc3d2148
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      src/freedombone-image-mesh

+ 5
- 0
src/freedombone-image-mesh View File

890
         rm -rf /etc/openvpn/easy-rsa/keys/*
890
         rm -rf /etc/openvpn/easy-rsa/keys/*
891
     fi
891
     fi
892
 
892
 
893
+    # Remove cryptpad datastore
894
+    if [ -d $CRYPTPAD_DIR/datastore ]; then
895
+        rm -rf $CRYPTPAD_DIR/datastore
896
+    fi
897
+
893
     echo $'Beginning mesh node setup' >> $INSTALL_LOG
898
     echo $'Beginning mesh node setup' >> $INSTALL_LOG
894
 
899
 
895
     if [ -d /home/$MY_USERNAME/.config ]; then
900
     if [ -d /home/$MY_USERNAME/.config ]; then