From 7a3f610740d5d425aabbe1230308abc0e53e53da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20unbrot=20P=C3=A4tzold?= Date: Thu, 30 Apr 2026 16:34:01 +0200 Subject: [PATCH] Crypt: Better check for configured --- system_setup/mount_ecrypt_home.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/system_setup/mount_ecrypt_home.sh b/system_setup/mount_ecrypt_home.sh index af2ff60..d73a8eb 100755 --- a/system_setup/mount_ecrypt_home.sh +++ b/system_setup/mount_ecrypt_home.sh @@ -80,13 +80,14 @@ else fi fi if [ "${ENCKEY}." == "." ]; then - echo "Some Error while fetching your Credentials. This should not happen. Quit." + echo "Some Error while fetching your IPA Vault Key. This should not happen. Quit." rm /var/tmp/IPAVAULTKEY.txt exit 2 fi +echo "Sucessfuly obtained IPA vault fileencryption key." #Setup and use encrypted filesystem -if [ ! -d "${DECRYPTEDDATADIR}" ]; then +if [ ! -d "${DECRYPTEDDATADIR}" ] || [ -f "${HOME}/.config/gocryptfs/gocryptfs.conf" ]; then #Key has been obtained, but no Directory was created till know echo "First Setup of encryption: Creating new Directories now" mkdir -p ${ENCRYPTEDDATADIR} ${DECRYPTEDDATADIR} ${HOME}/.config/gocryptfs @@ -100,6 +101,6 @@ if [ ${RETVAL} -eq 0 ]; then echo "Sucessfully mounted encrypted private Directory ${DECRYPTEDDATADIR}" exit 0 else - echo "Errorcode ${RETAVAL}" + echo "Errorcode ${RETVAL}" exit 1 fi