pmaports/main/postmarketos-ui-i3wm/postmarketos-ui-i3wm.post-upgrade
Asriel Dreemurr 5b1a20fbaf
main/postmarketos-ui-*: fix lightdm autologin after reinstall (!385)
When the UI package is reinstalled (due to the package being recompiled
or upgraded), it runs $pkgname.post-upgrade instead of
$pkgname.post-install which would run the sed replacement LightDM
autologin. This will cause LightDM to show the greeter when the UI
package is rebuilt, and the user ran pmbootstrap install without
deleting the old chroot.

Signed-off-by: Asriel Dreemurr <asriel.danctnix@gmail.com>
Reviewed-by: Danct12 <danct12@disroot.org>
Signed-off-by: Danct12 <danct12@disroot.org>
2019-06-04 20:42:13 +02:00

4 lines
152 B
Bash

#!/bin/sh
sed -i "s/username/$(getent passwd 10000 | cut -d: -f1)/g" /usr/share/lightdm/lightdm.conf.d/60-autologin.conf
rc-update add lightdm default