Skip to content

Commit

Permalink
expanded arguments in useradd to be easier to understand for beginners
Browse files Browse the repository at this point in the history
  • Loading branch information
mpldr committed Apr 21, 2022
1 parent db930af commit 6dd9e93
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/running-headscale-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ mkdir -p /etc/headscale
# Directory for Database, and other variable data (like certificates)
mkdir -p /var/lib/headscale
# or if you create a headscale user:
useradd -md /var/lib/headscale/ -rUs /usr/bin/nologin headscale
useradd \
--create-home \
--home-dir /var/lib/headscale/ \
--system \
--user-group \
--shell /usr/bin/nologin \
headscale
```

4. Create an empty SQLite database:
Expand Down

0 comments on commit 6dd9e93

Please sign in to comment.