mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-27 17:31:33 +02:00
List of fixes: - Do not fail to add the user 'gogs' to the group 'www-data', explicitely creates it first. - Explicitely pass the path to the .ini file to the gogs binary. - Use openrc-run instead of runscript. - Patch the list.tmpl template not to cause a fatal error when gogs starts.
8 lines
159 B
Bash
8 lines
159 B
Bash
#!/bin/sh
|
|
|
|
addgroup -S www-data 2>/dev/null
|
|
adduser -S -D -h /var/lib/gogs -s /bin/ash -G www-data -g gogs gogs 2>/dev/null
|
|
passwd -u gogs 2>/dev/null
|
|
|
|
exit 0
|