blockbook/contrib/backends/bcash/debian/bcash-testnet.postinst
2018-05-15 17:22:02 +02:00

21 lines
330 B
Bash

#!/bin/bash
set -e
case "$1" in
configure)
if ! id -u bcash &> /dev/null
then
useradd --system -M -U bcash -s /bin/false
fi
if [ "$(stat -c '%U' /opt/coins/data/bch-testnet/bitcoin)" != "bcash" ]
then
chown -R bcash:bcash /opt/coins/data/bch-testnet/bitcoin
fi
;;
esac
#DEBHELPER#