simplification et contrôle dossier
This commit is contained in:
parent
5dc30d4029
commit
efe8de9c00
|
@ -12,7 +12,7 @@ fi
|
||||||
TARGET=$1
|
TARGET=$1
|
||||||
PASSWORDFILE=$2
|
PASSWORDFILE=$2
|
||||||
|
|
||||||
CLEAR_DIR="/tmp/${TARGET}_clear"
|
CLEAR_DIR="~/${TARGET}_clear"
|
||||||
|
|
||||||
umount $TARGET
|
umount $TARGET
|
||||||
rm -rf $CLEAR_DIR
|
rm -rf $CLEAR_DIR
|
||||||
|
|
|
@ -13,7 +13,7 @@ TARGET=$1
|
||||||
PASSWORDFILE=$2
|
PASSWORDFILE=$2
|
||||||
|
|
||||||
# Création des répertoires si nécessaire
|
# Création des répertoires si nécessaire
|
||||||
CLEAR_DIR="/tmp/${TARGET}_clear"
|
CLEAR_DIR="~/${TARGET}_clear"
|
||||||
mkdir -p "$CLEAR_DIR"
|
mkdir -p "$CLEAR_DIR"
|
||||||
|
|
||||||
gocryptfs $TARGET $CLEAR_DIR --passfile $PASSWORDFILE
|
gocryptfs $TARGET $CLEAR_DIR --passfile $PASSWORDFILE
|
||||||
|
|
Loading…
Reference in New Issue