mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-23 20:07:17 +00:00
13 lines
352 B
Bash
13 lines
352 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
SERVICE_USER=prysm-validator
|
||
|
|
||
|
# Create the service account, if needed
|
||
|
getent passwd $SERVICE_USER > /dev/null || useradd -s /bin/false --no-create-home --system --user-group $SERVICE_USER
|
||
|
|
||
|
# Create directories
|
||
|
mkdir -p /etc/prysm
|
||
|
mkdir -p /var/lib/prysm
|
||
|
install -d -m 0700 -o $SERVICE_USER -g $SERVICE_USER /var/lib/prysm/validator
|