summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Burgos2018-06-12 17:28:11 -0600
committerSam Burgos2018-06-12 17:28:11 -0600
commitbc0c67bba6fad7f4fa5264a5bd66be1de179617d (patch)
tree5e0090fad588b896f56f01b52b6cca809ba8db8b
parent6ab82cae44403728030bb8b6c43c383628a72be2 (diff)
downloadaur-bc0c67bba6fad7f4fa5264a5bd66be1de179617d.tar.gz
another file added for testing
-rw-r--r--lightdm.install17
1 files changed, 17 insertions, 0 deletions
diff --git a/lightdm.install b/lightdm.install
new file mode 100644
index 00000000000..c130f4771cc
--- /dev/null
+++ b/lightdm.install
@@ -0,0 +1,17 @@
+post_install() {
+ if ! getent group lightdm &>/dev/null; then
+ groupadd -g 620 lightdm
+ fi
+
+ if ! getent passwd lightdm &>/dev/null; then
+ useradd -c 'Light Display Manager' -u 620 -g lightdm -d /var/lib/lightdm -s /usr/bin/nologin lightdm
+ fi
+
+ passwd -l lightdm > /dev/null
+
+ systemd-tmpfiles --create /usr/lib/tmpfiles.d/lightdm.conf
+}
+
+post_upgrade() {
+ post_install
+}