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