pmaports/main/postmarketos-ui-phosh/postmarketos-ui-phosh.post-install
Newbyte b0e89af26d
main/postmarketos-ui-phosh: handle less services (MR 3852)
This is now handled by postmarketos-base-ui-gnome.
2023-02-16 17:53:05 +02:00

17 lines
568 B
Bash

#!/bin/sh
rc-update add tinydm default
rc-update add waked default
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