summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2023-09-03 13:13:58 +0300
committerPaul Buetow <paul@buetow.org>2023-09-03 13:13:58 +0300
commit3bc62a6ad2a43875052e53666c4bfa2b1b89298b (patch)
tree29e353d32117dcee2d2c25c5c6c7df441d6b19a7
parent3921ba5f88351491e10c8e8b86954e6c1d3a215b (diff)
add dir setup to rc.local for OpenBSD
-rw-r--r--README.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/README.md b/README.md
index a32bbb8..839294b 100644
--- a/README.md
+++ b/README.md
@@ -62,6 +62,9 @@ doas usermod -d /var/run/gogios _gogios
doas mkdir -p /var/run/gogios
doas chown _gogios:_gogios /var/run/gogios
doas chmod 750 /var/run/gogios
+echo if [ ! -d /var/run/gogios ]; then mkdir -p /var/run/gogios; fi | doas tee -a /etc/rc.local
+echo chown _gogios:_gogios /var/run/gogios | doas tee -a /etc/rc.local
+echo chmod 750 /var/run/gogios | doas tee -a /etc/rc.local
```
Please note that creating a user and group might differ depending on your operating system. For other operating systems, consult their documentation for creating system users and groups.