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

21 lines
339 B
Bash

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