summaryrefslogtreecommitdiff
path: root/contrib/pam_mount/gocryptfs_pam_mount.bash
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-10-09 21:24:42 +0200
committerJakob Unterwurzacher2016-10-09 21:27:34 +0200
commit5ef27ee5490a1a5f17b6014fb3a83de52dee930f (patch)
treeb91f6ec19114a4672e7c066f372572c2e60b4177 /contrib/pam_mount/gocryptfs_pam_mount.bash
parent9f0793ab0f7f73f8829cb86d6a645fd01eaa6849 (diff)
Drop contrib/pam_mount
The README text has been moved to https://github.com/rfjakob/gocryptfs/wiki/Mounting-on-login-using-pam_mount and the gocryptfs_pam_mount.bash is no longer needed since commit 9cf3ced0ce95495cabd8f4e7055d1c98f42363c9 .
Diffstat (limited to 'contrib/pam_mount/gocryptfs_pam_mount.bash')
-rwxr-xr-xcontrib/pam_mount/gocryptfs_pam_mount.bash37
1 files changed, 0 insertions, 37 deletions
diff --git a/contrib/pam_mount/gocryptfs_pam_mount.bash b/contrib/pam_mount/gocryptfs_pam_mount.bash
deleted file mode 100755
index e6f31ba..0000000
--- a/contrib/pam_mount/gocryptfs_pam_mount.bash
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/bash
-#
-# Simple bash script to transform the command-line arguments that
-# pam_mount passes to gocryptfs into something that gocryptfs
-# understands.
-#
-# Currently understood: nonempty,allow_other,quiet.
-# Unknown options are ignored.
-
-exec >&2
-set -eu
-MYNAME=$(basename $0)
-
-if [[ $# != 4 ]]; then
- echo "$MYNAME: expected 4 arguments, got $#"
- echo "Example: $MYNAME /home/user.crypt /home/user.plain -o allow_other"
- echo "Example: $MYNAME /home/user.crypt /home/user.plain -o defaults"
- exit 1
-fi
-
-SRC=$1
-DST=$2
-
-if mountpoint "$DST" > /dev/null; then
- echo "$MYNAME: something is already mounted on $DST, refusing"
- exit 2
-fi
-
-GOPTS=""
-for OPT in nonempty allow_other quiet; do
- if [[ $4 == *$OPT* ]]; then
- GOPTS="$GOPTS -$OPT"
- fi
-done
-
-cd "$(dirname "$0")"
-exec ./gocryptfs $GOPTS $SRC $DST