mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-28 15:46:43 +00:00
12 lines
414 B
Bash
12 lines
414 B
Bash
#!/bin/bash
|
|
# This is a postinstallation script so the service can be configured and started when requested
|
|
#
|
|
sudo adduser --disabled-password --disabled-login --shell /usr/sbin/nologin --quiet --system --no-create-home --home /nonexistent bor
|
|
if [ -d "/var/lib/bor" ]
|
|
then
|
|
echo "Directory /var/lib/bor exists."
|
|
else
|
|
mkdir -p /var/lib/bor
|
|
sudo chown -R bor /var/lib/bor
|
|
fi
|
|
sudo systemctl daemon-reload
|