From 0802175328821ff2d342d70a88cb9ff3d5d88963 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sat, 3 Oct 2015 19:15:15 +0200 Subject: [PATCH] Add daemonization shell script --- gocryptfs.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 gocryptfs.sh 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