commit 313d2598171a8f6dcc400bfa16e8c2193ea53164
parent ec8496933a93176b96e04823e2b60dc9e30c80bc
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Wed, 4 May 2022 22:53:46 +0200
mounting home
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/luks_mount b/luks_mount
@@ -13,7 +13,12 @@ fi
ID=$(duuid "$VOLUME")
KEY="$HOME/credentials/$VOLUME.key"
-FOLDER="/mnt/$VOLUME"
+if echo "$VOLUME" | grep '_home$' > /dev/null
+then
+ FOLDER="/home"
+else
+ FOLDER="/mnt/$VOLUME"
+fi
if [ -f "$KEY" ]
then