* Initial vertcoin backend commit * Readme vertcoin ports * Fix bin * Vertcoin blockbook initial commit * Vertcoin fix services port, faked magic due duplicity
24 lines
450 B
Bash
24 lines
450 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
case "$1" in
|
|
|
|
configure)
|
|
if ! id -u blockbook-vertcoin &> /dev/null
|
|
then
|
|
useradd --system -M -U blockbook-vertcoin -s /bin/false
|
|
fi
|
|
|
|
for dir in /opt/coins/data/vertcoin/blockbook /opt/coins/blockbook/vertcoin/logs
|
|
do
|
|
if [ "$(stat -c '%U' $dir)" != "blockbook-vertcoin" ]
|
|
then
|
|
chown -R blockbook-vertcoin:blockbook-vertcoin $dir
|
|
fi
|
|
done
|
|
;;
|
|
|
|
esac
|
|
|
|
#DEBHELPER#
|