PREIN
/bin/sh
getent group flatpak >/dev/null || groupadd -r flatpak getent passwd flatpak >/dev/null || \ useradd -r -g flatpak -d / -s /sbin/nologin \ -c "User for flatpak system helper" flatpak exit 0
POSTIN
/bin/sh
# Create an (empty) system-wide repo. flatpak remote-list --system &> /dev/null || :