mirror of https://github.com/status-im/consul.git
15 lines
153 B
Plaintext
15 lines
153 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
set -eu
|
||
|
|
||
|
USER="consul"
|
||
|
|
||
|
if ! id -u $USER > /dev/null 2>&1; then
|
||
|
useradd \
|
||
|
--system \
|
||
|
--user-group \
|
||
|
--shell /bin/false \
|
||
|
$USER
|
||
|
fi
|
||
|
|