21 lines
339 B
Bash
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#
|