PrivateThoughts/run.sh
2022-03-21 17:01:51 -04:00

17 lines
439 B
Bash
Executable File

rm -rf ./data.link
ln -s "$1/notes" ./data.link
echo "Remade link"
#echo "Start markdown viewer"
#echo "pandoc $1/notes/*.md | lynx -stdin"
echo "Starting container..."
docker run --name privmd --rm -it -v `pwd`/data.link/:/notes `docker build -q .`
echo "Unmounting db..."
luks=`lsblk | grep /media/michael/Return\ to\ mscalz | grep -o -e "luks-[[:alnum:]-]*"`
umount -f "$1"
cryptsetup luksClose /dev/mapper/$luks
echo "Exiting..."