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