open-consul/.release/linux/preinstall
2021-10-26 23:21:04 -07:00

15 lines
153 B
Bash

#!/bin/bash
set -eu
USER="consul"
if ! id -u $USER > /dev/null 2>&1; then
useradd \
--system \
--user-group \
--shell /bin/false \
$USER
fi