Skip to content
Snippets Groups Projects
Commit dc2947f7 authored by Bob Mottram's avatar Bob Mottram
Browse files

Additional tomb inspection

parent 75966b24
No related branches found
No related tags found
No related merge requests found
......@@ -593,12 +593,16 @@ function setup_amnesic_tox_data {
fi
# make a temporary password
TOMB_TOX_PASSWORD="$(openssl rand -base64 32 | cut -c1-30)"
tomb dig -s $TOMB_TOX_SIZE_MB /tmp/tox.tomb
if [ ! -f /tmp/tox.tomb ]; then
echo "WARNING: Tomb did not install properly" >> /var/log/${PROJECT_NAME}.log
tomb >> /var/log/${PROJECT_NAME}.log
fi
TOMB_TOX_PASSWORD="$(openssl rand -base64 32 | cut -c1-30)"
tomb forge /mnt/ramdisk/tox.tomb.key --tomb-pwd "${TOMB_TOX_PASSWORD}" --unsafe
tomb lock /tmp/tox.tomb -k /mnt/ramdisk/tox.tomb.key --tomb-pwd "${TOMB_TOX_PASSWORD}" --unsafe
tomb open /tmp/tox.tomb -k /mnt/ramdisk/tox.tomb.key --tomb-pwd "${TOMB_TOX_PASSWORD}" --unsafe
# clear the password
# clear the temporary password
TOMB_TOX_PASSWORD=
if [ -d /media/tox ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment