Merge pull request #551 from mpldr/patch-1
This commit is contained in:
commit
f9e2ce2c8c
1 changed files with 11 additions and 4 deletions
|
@ -30,6 +30,14 @@ mkdir -p /etc/headscale
|
||||||
|
|
||||||
# Directory for Database, and other variable data (like certificates)
|
# Directory for Database, and other variable data (like certificates)
|
||||||
mkdir -p /var/lib/headscale
|
mkdir -p /var/lib/headscale
|
||||||
|
# or if you create a headscale user:
|
||||||
|
useradd \
|
||||||
|
--create-home \
|
||||||
|
--home-dir /var/lib/headscale/ \
|
||||||
|
--system \
|
||||||
|
--user-group \
|
||||||
|
--shell /usr/bin/nologin \
|
||||||
|
headscale
|
||||||
```
|
```
|
||||||
|
|
||||||
4. Create an empty SQLite database:
|
4. Create an empty SQLite database:
|
||||||
|
@ -150,7 +158,7 @@ or run all headscale commands as the headscale user:
|
||||||
su - headscale
|
su - headscale
|
||||||
```
|
```
|
||||||
|
|
||||||
2. In `/etc/headscale/config.yaml`, override the default `headscale` unix socket with a SystemD friendly path:
|
2. In `/etc/headscale/config.yaml`, override the default `headscale` unix socket with path that is writable by the `headscale` user or group:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
unix_socket: /var/run/headscale/headscale.sock
|
unix_socket: /var/run/headscale/headscale.sock
|
||||||
|
@ -165,8 +173,7 @@ systemctl daemon-reload
|
||||||
4. Enable and start the new `headscale` service:
|
4. Enable and start the new `headscale` service:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
systemctl enable headscale
|
systemctl enable --now headscale
|
||||||
systemctl start headscale
|
|
||||||
```
|
```
|
||||||
|
|
||||||
5. Verify the headscale service:
|
5. Verify the headscale service:
|
||||||
|
|
Loading…
Reference in a new issue