Update security.sh
This commit is contained in:
parent
49cfaf033e
commit
1cc2b6cefb
@ -2,7 +2,7 @@
|
||||
KEY_LOCATION="/tmp/key"
|
||||
VERACRYPT_KEY="$KEY_LOCATION/veracrypt"
|
||||
KEEPASS_KEY="$KEY_LOCATION/keepass.key"
|
||||
USB_KEY_UUID="817038c8-05c0-43ee-a704-443915bc40bb"
|
||||
USB_KEY_LABEL="veracrypt"
|
||||
COMPTUER_USER="verita84"
|
||||
VERACRYPT_MOUNT_DIR="/home/$COMPTUER_USER/Nextcloud"
|
||||
VERACRYPT_VOLUME="/home/$COMPTUER_USER/home.vc"
|
||||
@ -10,8 +10,8 @@ VERACRYPT_VOLUME="/home/$COMPTUER_USER/home.vc"
|
||||
mkdir $KEY_LOCATION
|
||||
|
||||
while :; do
|
||||
USB_CHECK=$(blkid | grep $USB_KEY_UUID)
|
||||
if [[ $USB_CHECK = *$USB_KEY_UUID* ]]; then
|
||||
USB_CHECK=$(blkid | grep $USB_KEY_LABEL)
|
||||
if [[ $USB_CHECK = *$USB_KEY_LABEL* ]]; then
|
||||
echo
|
||||
echo "USB Key plugged in."
|
||||
echo
|
||||
@ -41,7 +41,7 @@ while :; do
|
||||
echo
|
||||
echo "VeraCrypt Volume not mounted yet. Mounting now....."
|
||||
echo
|
||||
mount /dev/disk/by-uuid/$USB_KEY_UUID $KEY_LOCATION
|
||||
mount -L $USB_KEY_LABEL $KEY_LOCATION
|
||||
fi
|
||||
else
|
||||
echo
|
||||
|
Loading…
Reference in New Issue
Block a user