mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
Updating a release if system files failed would result in failure from the install script. This fixes it!
15 lines
206 B
Bash
15 lines
206 B
Bash
#!/bin/sh
|
|
set -eu
|
|
|
|
USER="coder"
|
|
|
|
# Add a Coder user to run as in systemd.
|
|
if ! id -u $USER >/dev/null 2>&1; then
|
|
useradd \
|
|
--create-home \
|
|
--system \
|
|
--user-group \
|
|
--shell /bin/false \
|
|
$USER
|
|
fi
|