Add daemonization shell script
This commit is contained in:
parent
79870ab096
commit
0802175328
14
gocryptfs.sh
Executable file
14
gocryptfs.sh
Executable file
@ -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
|
Loading…
x
Reference in New Issue
Block a user