pmaports/main/postmarketos-ui-phosh/postmarketos-ui-phosh.post-install
Sam Day 7f16b13781
main/postmarketos-ui-phosh: support openrc and systemd installs (MR 5171)
Also see: MR 4904

Co-authored-by: Clayton Craft <clayton@craftyguy.net>
2024-05-28 09:33:29 -07:00

13 lines
446 B
Bash

#!/bin/sh
# Add the user to relevant groups in post-upgrade (symlink to post-install).
# Note that we don't want to rely on users existing in post-install
# (pmaports#820), therefore the group is also set via _pmb_groups during
# 'pmbootstrap install'. When adding a new group here, keep _pmb_groups in
# sync.
default_user=$(getent passwd "10000" | cut -d: -f1)
if [ -n "$default_user" ]; then
usermod -aG feedbackd "$default_user"
fi
exit 0