mirror of
https://github.com/basicswap/basicswap.git
synced 2024-12-23 03:49:25 +00:00
11 lines
No EOL
205 B
Bash
Executable file
11 lines
No EOL
205 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
if [[ "$1" == "dcrctl" || "$1" == "dcrd" || "$1" == "dcrwallet" ]]; then
|
|
mkdir -p "$DECRED_DATA"
|
|
|
|
chown -h decred:decred /home/decred/decred
|
|
exec gosu decred "$@"
|
|
else
|
|
exec "$@"
|
|
fi |