blockbook/contrib/backends/bcash/debian/bcash-bch.postinst
2018-04-26 11:02:03 +02:00

21 lines
287 B
Bash

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