mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 03:30:35 +00:00
eb1d122aec
* Basic build targets for debian packages * Add comments to config files * Harden beacon-chain systemd service * Add install scripts to set users and folders up * Rename bazel target, fix service files * Extra service hardening, cleanup install scripts * Fix linting issues * //shared:version_file run local only * gazelle Co-authored-by: Nishant Das <nishdas93@gmail.com> Co-authored-by: Raul Jordan <raul@prysmaticlabs.com> Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
13 lines
352 B
Bash
Executable File
13 lines
352 B
Bash
Executable File
#!/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 |