aports/testing/gogs/gogs.pre-install
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

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