main/postmarketos-ui-{mate|xfce4}: separate openrc and main post-install scripts
lxqt|mate|xfce4:
Remove symlink between post-install and post-upgrade scripts. This was likely implemented because the lightdm autologin config file gets overwritten on each upgrade and needs to be modified again by the post-upgrade script then. That behavior will be dissolved by this commit. Beyond this, the openrc services don't need to be enabled on every upgrade, at install is suffucient. The post-upgrade script should be reserved for actions on specific upgrades.
mate|xfce4:
"user"-modified config files in /usr get overwritten by apk, whereas those in /etc won't. The lightdm autologin config file is supposed to be a "user"- modified file not being overwritten. Therefore it needs to be moved to /etc. The one in /usr should remain for some time (needs to make it in next stable release to ensure later handling of the file in stable releases by apk) and let it be overwritten, because it needs to be removed at some point in future by apk to avoid unclear autologin situation. The new one in /etc gets a lower file number to take preference over the one in /usr, which won't be correct anymore (as it gets overwritten by the delivered config file with autologin user "username").- Split the post-install scripts for the main package and the openrc subpackage. They act on different things.
Change the sed line for the lightdm autologin to the new file in /etc. Remove the "rc-update -qq del tinydm default || true" line, that one has been available long enough. Add a temporary post-upgrade script for the main package to rename autologin user in the new config file in /etc.
Marked it as draft because I'll do some more testing on upgrading and new installs.
Edited by Jakko