aboutsummaryrefslogtreecommitdiff
path: root/gocryptfs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'gocryptfs.sh')
-rwxr-xr-xgocryptfs.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/gocryptfs.sh b/gocryptfs.sh
new file mode 100755
index 0000000..689708c
--- /dev/null
+++ b/gocryptfs.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+# Run the gocryptfs process in the background
+
+set -eu
+
+dir=$(dirname "$0")
+
+# This needs user input and cannot run in the background
+if [[ $* == *--init* ]]; then
+ "$dir/gocryptfs" $*
+else
+ "$dir/gocryptfs" $* & disown
+fi