main/postmarketos-ui-phosh: add user to feedbackd (MR 1750)
Use _pmb_groups and post-upgrade mechanisms to add the user to the feedbackd group. Depends: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/17489 Co-Authored-By: Oliver Smith <ollieparanoid@postmarketos.org>
This commit is contained in:
parent
3b96926f6f
commit
aa77b10c44
2 changed files with 14 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
||||
pkgname=postmarketos-ui-phosh
|
||||
pkgver=6
|
||||
pkgrel=5
|
||||
pkgrel=6
|
||||
pkgdesc="(Wayland) Mobile UI developed for the Librem 5 (works only with numeric passwords!)"
|
||||
url="https://puri.sm"
|
||||
arch="noarch !armhf !x86" # x86: aports#11807
|
||||
|
@ -37,6 +37,7 @@ _pmb_recommends="calls
|
|||
xdg-user-dirs
|
||||
xorg-server-xwayland
|
||||
"
|
||||
_pmb_groups="feedbackd"
|
||||
subpackages="$pkgname-qt_tweaks"
|
||||
install="$pkgname.post-install $pkgname.post-upgrade"
|
||||
source="
|
||||
|
|
|
@ -6,3 +6,15 @@ rc-update add bluetooth default
|
|||
rc-update add iio-sensor-proxy default
|
||||
dconf update
|
||||
tinydm-set-session -s /usr/share/wayland-sessions/phosh.desktop
|
||||
|
||||
# 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
|
||||
|
|
Loading…
Reference in a new issue