blockbook/contrib/backends/ethereum/debian/ethereum-eth.postinst
2018-05-31 19:44:02 +02:00

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