mirror of
https://github.com/coder/coder.git
synced 2026-09-22 21:22:17 +08:00
* feat: Add built-in PostgreSQL for simple production setup Fixes #2321. * Use fork of embedded-postgres for cache path
14 lines
188 B
Bash
14 lines
188 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 \
|
|
--system \
|
|
--user-group \
|
|
--shell /bin/false \
|
|
$USER
|
|
fi
|