mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-29 23:49:25 +01:00
10 lines
388 B
Plaintext
10 lines
388 B
Plaintext
|
#!/usr/bin/execlineb -P
|
||
|
envfile /etc/s6/config/ergo.conf
|
||
|
importas -sCiu DIRECTIVES DIRECTIVES
|
||
|
ifelse { test -w /var/log } {
|
||
|
foreground { install -d -o s6log -g s6log /var/log/ergo }
|
||
|
s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /var/log/ergo
|
||
|
}
|
||
|
foreground { install -d -o s6log -g s6log /run/log/ergo }
|
||
|
s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /run/log/ergo
|