14 lines
505 B
Bash
14 lines
505 B
Bash
#!/bin/sh
|
|
|
|
addgroup -S forgejo-runner 2>/dev/null
|
|
adduser -S -D -H -h /var/lib/forgejo-runner -s /sbin/nologin -G forgejo-runner -g forgejo-runner forgejo-runner 2>/dev/null
|
|
|
|
cat >&2 <<EOF
|
|
* In order to setup the runner, create a config file
|
|
* in /etc/forgejo-runner/config.yaml (either from .example.yaml,
|
|
* or generating your own with 'forgejo-runner generate-config'),
|
|
* then register it with 'doas -u forgejo-runner forgejo-runner register'
|
|
* ran in the /var/lib/forgejo-runner directory.
|
|
EOF
|
|
|
|
exit 0
|