blockbook/contrib/backends/bcash/debian/backend-bcash.postinst
2018-06-11 09:53:35 +02:00

21 lines
318 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/bcash/backend)" != "bcash" ]
then
chown -R bcash:bcash /opt/coins/data/bcash/backend
fi
;;
esac
#DEBHELPER#