Update security.sh

This commit is contained in:
verita84 2023-12-30 21:09:11 -07:00
parent 6a1f8eddf2
commit 915e63b748

View File

@ -3,14 +3,14 @@ KEY_LOCATION="/tmp/key"
VERACRYPT_KEY="$KEY_LOCATION/veracrypt"
USB_KEY_LABEL="veracrypt"
COMPTUER_USER="verita84"
VERACRYPT_MOUNT_DIR="/home/$COMPTUER_USER/Nextcloud"
VERACRYPT_VOLUME="/home/$COMPTUER_USER/home.vc"
VERACRYPT_MOUNT_DIR="/home"
VERACRYPT_VOLUME="/dev/nvme0n1p4"
mkdir $KEY_LOCATION
stop-Everything() {
killall -9 -u $COMPTUER_USER
systemctl disable --now gdm
systemctl stop gdm
veracrypt --dismount $VERACRYPT_VOLUME
umount $VERACRYPT_MOUNT_DIR
umount $KEY_LOCATION
@ -18,7 +18,7 @@ stop-Everything() {
start-Everything() {
veracrypt --mount $VERACRYPT_VOLUME $VERACRYPT_MOUNT_DIR --pim 0 --password="" --keyfiles $VERACRYPT_KEY --protect-hidden no --slot 1
systemctl enable --now gdm
systemctl start gdm
}
while :; do
@ -62,4 +62,4 @@ while :; do
stop-Everything
fi
sleep 15
done
done