~dricottone/huttese-apk

163117f05cd7945e275f24470aad63638cfd1567 — j3s 4 years ago a411788
Fix various user creation bugs and inconsistencies

- ensure that all users are added to their corresponding groups
- replace listssrht user with lists
- ensure that the git user creates its homedir
- ensure that adduser args are in same order across all apks
M sr.ht/dispatch.sr.ht/dispatch.sr.ht.post-install => sr.ht/dispatch.sr.ht/dispatch.sr.ht.post-install +1 -1
@@ 1,3 1,3 @@
#!/bin/sh
addgroup -S dispatch || true
adduser -SDH -s /sbin/nologin -g dispatch dispatch || true
adduser -SDH -s /sbin/nologin -G dispatch -g dispatch dispatch || true

M sr.ht/git.sr.ht/git.sr.ht.post-install => sr.ht/git.sr.ht/git.sr.ht.post-install +1 -1
@@ 1,3 1,3 @@
#!/bin/sh
addgroup -S git || true
adduser -SDH -h /var/lib/git -s /bin/sh -G git -g git git || true
adduser -SD -h /var/lib/git -s /bin/sh -G git -g git git || true

M sr.ht/hg.sr.ht/hg.sr.ht.post-install => sr.ht/hg.sr.ht/hg.sr.ht.post-install +1 -1
@@ 1,3 1,3 @@
#!/bin/sh
addgroup -S hg || true
adduser -SD -s /sbin/nologin -g hg -h /var/lib/mercurial hg || true
adduser -SD -h /var/lib/mercurial -s /sbin/nologin -G hg -g hg hg || true

M sr.ht/lists.sr.ht/lists.sr.ht-lmtp.confd => sr.ht/lists.sr.ht/lists.sr.ht-lmtp.confd +1 -1
@@ 1,5 1,5 @@
# Run the daemon as this user:
# LISTS_USER=listssrht
# LISTS_USER=lists

# If no, use an external postgresql server
# LOCAL_PG=yes

M sr.ht/lists.sr.ht/lists.sr.ht-lmtp.initd => sr.ht/lists.sr.ht/lists.sr.ht-lmtp.initd +1 -1
@@ 2,7 2,7 @@
name="lists.sr.ht-lmtp"
description="lists.sr.ht mail ingress service"
supervisor=supervise-daemon
LISTS_USER=${LISTS_USER:-listssrht}
LISTS_USER=${LISTS_USER:-lists}
LOCAL_PG=${LOCAL_PG:-yes}
LOGS=/var/log/lists.sr.ht-lmtp.log
supervise_daemon_args="-1 $LOGS -2 $LOGS"

M sr.ht/lists.sr.ht/lists.sr.ht-process.confd => sr.ht/lists.sr.ht/lists.sr.ht-process.confd +1 -1
@@ 1,5 1,5 @@
# Run the daemon as this user:
# LISTS_USER=listssrht
# LISTS_USER=lists

# Extra arguments to pass to celery
# LISTS_ARGS=

M sr.ht/lists.sr.ht/lists.sr.ht-process.initd => sr.ht/lists.sr.ht/lists.sr.ht-process.initd +1 -1
@@ 2,7 2,7 @@
name="lists.sr.ht-process"
description="lists.sr.ht mail processing service"
supervisor=supervise-daemon
LISTS_USER=${LISTS_USER:-listssrht}
LISTS_USER=${LISTS_USER:-lists}
LISTS_ARGS=${LISTS_ARGS:-}
LOCAL_PG=${LOCAL_PG:-yes}
LOGS=/var/log/lists.sr.ht-process.log

M sr.ht/lists.sr.ht/lists.sr.ht-webhooks.confd => sr.ht/lists.sr.ht/lists.sr.ht-webhooks.confd +1 -1
@@ 1,5 1,5 @@
# Run the daemon as this user:
# LISTS_USER=listssrht
# LISTS_USER=lists

# Extra arguments to pass to celery
# LISTS_ARGS=

M sr.ht/lists.sr.ht/lists.sr.ht-webhooks.initd => sr.ht/lists.sr.ht/lists.sr.ht-webhooks.initd +1 -1
@@ 2,7 2,7 @@
name="lists.sr.ht-webhooks"
description="lists.sr.ht webhook delivery service"
supervisor=supervise-daemon
LISTS_USER=${LISTS_USER:-listssrht}
LISTS_USER=${LISTS_USER:-lists}
LISTS_ARGS=${LISTS_ARGS:-}
LOCAL_PG=${LOCAL_PG:-yes}
LOGS=/var/log/lists.sr.ht-webhooks.log

M sr.ht/lists.sr.ht/lists.sr.ht.confd => sr.ht/lists.sr.ht/lists.sr.ht.confd +1 -1
@@ 1,5 1,5 @@
# Run the daemon as this user:
# LISTS_USER=listssrht
# LISTS_USER=lists

# Bind the web service to this address:
# LISTS_BIND=127.0.0.1:5001

M sr.ht/lists.sr.ht/lists.sr.ht.initd => sr.ht/lists.sr.ht/lists.sr.ht.initd +1 -1
@@ 2,7 2,7 @@
name="lists.sr.ht"
description="lists.sr.ht service"
supervisor=supervise-daemon
LISTS_USER=${LISTS_USER:-listssrht}
LISTS_USER=${LISTS_USER:-lists}
LISTS_BIND=${LISTS_BIND:-127.0.0.1:5001}
LISTS_ARGS=${LISTS_ARGS:-}
LOCAL_PG=${LOCAL_PG:-yes}

M sr.ht/lists.sr.ht/lists.sr.ht.post-install => sr.ht/lists.sr.ht/lists.sr.ht.post-install +2 -2
@@ 1,3 1,3 @@
#!/bin/sh
addgroup -S listssrht || true
adduser -SDH -s /sbin/nologin -g listssrht listssrht || true
addgroup -S lists || true
adduser -SDH -s /sbin/nologin -G lists -g lists lists || true

M sr.ht/man.sr.ht/man.sr.ht.post-install => sr.ht/man.sr.ht/man.sr.ht.post-install +1 -1
@@ 1,3 1,3 @@
#!/bin/sh
addgroup -S man || true
adduser -SDH -s /sbin/nologin -g man man || true
adduser -SDH -s /sbin/nologin -G man -g man man || true

M sr.ht/meta.sr.ht/meta.sr.ht.post-install => sr.ht/meta.sr.ht/meta.sr.ht.post-install +1 -1
@@ 1,3 1,3 @@
#!/bin/sh
addgroup -S meta || true
adduser -SDH -s /sbin/nologin -g meta meta || true
adduser -SDH -s /sbin/nologin -G meta -g meta meta || true

M sr.ht/paste.sr.ht/paste.sr.ht.post-install => sr.ht/paste.sr.ht/paste.sr.ht.post-install +1 -1
@@ 1,3 1,3 @@
#!/bin/sh
addgroup -S paste || true
adduser -SDH -s /sbin/nologin -g paste paste || true
adduser -SDH -s /sbin/nologin -G paste -g paste paste || true

M sr.ht/todo.sr.ht/todo.sr.ht.post-install => sr.ht/todo.sr.ht/todo.sr.ht.post-install +1 -1
@@ 1,3 1,3 @@
#!/bin/sh
addgroup -S todo || true
adduser -SDH -s /sbin/nologin -g todo todo || true
adduser -SDH -s /sbin/nologin -G todo -g todo todo || true