7 Commits

Author SHA1 Message Date
7heo
34793a33c9 testing/gogs: multiple fixes
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.
2016-07-04 15:30:22 +02:00
Przemyslaw Pawelczyk
da4e96aace Reorder arguments passed to addgroup/adduser in scripts.
Now all invocations have following order of arguments (if present):

    addgroup -S -g ... GROUP
    adduser -S -u ... -D -H -h ... -s ... -G ... -g ... USER
2016-04-25 06:56:47 +00:00
Przemyslaw Pawelczyk
a60b9f07de Improve consistency of scripts using adduser/addgroup.
Following rules have been applied:
- script starts with shebang !#/bin/sh followed by blank line,
- script ends with exit 0 prepended by blank line,
- only stderr of adduser, addgroup or passwd is redirected to /dev/null,
- getent passwd/group instances has been removed,
- manual checking of file and group existence has been removed,
- `|| true` instances has been removed.

Comments and line wrapping have been preserved.
2016-04-25 06:55:43 +00:00
Przemyslaw Pawelczyk
a593d306c9 Add -g option (GECOS/comment) to adduser in scripts.
This way we can avoid ugly default:

    Linux user,,,
2016-04-25 06:54:18 +00:00
Carlo Landmeter
99c477822a testing/gogs: gogs user needs a shell 2015-04-20 19:22:38 +02:00
Carlo Landmeter
619e4d8f01 testing/gogs: unlock system user 2015-04-20 19:13:18 +02:00
Carlo Landmeter
a8c9452678 testing/gogs: new aport 2015-04-20 17:23:03 +02:00