Created
March 1, 2019 18:12
-
-
Save devthejo/c32c55a4e32e7e4d1629124b16650316 to your computer and use it in GitHub Desktop.
cryfs automount bash script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export CRYFS_FRONTEND=noninteractive | |
export CRYFS_NO_UPDATE_CHECK=noninteractive | |
CLOUD_DIR="${HOME}/.cloud" | |
BASE_DIR="${CLOUD_DIR}/Drive.cryfs" | |
MOUNT_DIR="${CLOUD_DIR}/Drive" | |
CONFIG_FILE="${CLOUD_DIR}/cryfs.config" | |
PASSWORD="mypassword" | |
if [ ! -d "$MOUNT_DIR" ]; then | |
mkdir $MOUNT_DIR | |
fi | |
echo $PASSWORD | cryfs -f --config $CONFIG_FILE $BASE_DIR $MOUNT_DIR &>/dev/null & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment