open-nomad/.release/linux/preinst

14 lines
150 B
Plaintext
Raw Normal View History

2022-04-06 15:47:02 +00:00
#!/bin/bash
set -eu
USER="nomad"
if ! id -u $USER >/dev/null 2>&1; then
useradd \
--system \
--user-group \
--shell /bin/false \
$USER
fi