forked from obel1x/fedora-OEMDRV
Crypt: Add Passfile
This commit is contained in:
@@ -90,7 +90,7 @@ if [ ! -d "${DECRYPTEDDATADIR}" ]; then
|
|||||||
#Key has been obtained, but no Directory was created till know
|
#Key has been obtained, but no Directory was created till know
|
||||||
echo "First Setup of encryption: Creating new Directories now"
|
echo "First Setup of encryption: Creating new Directories now"
|
||||||
mkdir -p ${ENCRYPTEDDATADIR} ${DECRYPTEDDATADIR} ${HOME}/.config/gocryptfs
|
mkdir -p ${ENCRYPTEDDATADIR} ${DECRYPTEDDATADIR} ${HOME}/.config/gocryptfs
|
||||||
gocryptfs -init -allow_other -config ${HOME}/.config/gocryptfs/gocryptfs.conf ${ENCRYPTEDDATADIR} >/dev/null
|
gocryptfs -init -allow_other -passfile /var/tmp/IPAVAULTKEY.txt -config ${HOME}/.config/gocryptfs/gocryptfs.conf ${ENCRYPTEDDATADIR} >/dev/null
|
||||||
fi
|
fi
|
||||||
gocryptfs -noprealloc -allow_other -passfile /var/tmp/IPAVAULTKEY.txt -config ${HOME}/.config/gocryptfs/gocryptfs.conf ${ENCRYPTEDDATADIR} ${DECRYPTEDDATADIR} >/dev/null
|
gocryptfs -noprealloc -allow_other -passfile /var/tmp/IPAVAULTKEY.txt -config ${HOME}/.config/gocryptfs/gocryptfs.conf ${ENCRYPTEDDATADIR} ${DECRYPTEDDATADIR} >/dev/null
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
|
|||||||
Reference in New Issue
Block a user