summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Burgos2020-04-13 16:19:33 -0600
committerSam Burgos2020-04-13 16:19:33 -0600
commit4ec320f09812a82b7e76998184e2da7d187cc054 (patch)
tree1faf610b2ea00ab46e8176adecfc7039afc84c99
parent180ab16f5a42c24c08302cd4bda38c48bcab4576 (diff)
downloadaur-lightdm-guest.tar.gz
added condition to create the files only if they do not exist
-rw-r--r--PKGBUILD13
1 files changed, 11 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 66683eb0be5..0f8edb6b8fc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -197,8 +197,17 @@ package_lightdm-guest() {
# Install autologin systemd service
cd /$srcdir
- install -Dm755 $_add_group.script $pkgdir/usr/bin/$_add_group
- install -Dm644 $_add_group.service $pkgdir/etc/systemd/system/$_add_group.service
+
+ if [ ! -f $pkgdir/usr/bin/$_add_group.script ]; then
+ install -Dm755 $_add_group.script $pkgdir/usr/bin/$_add_group
+ fi
+
+ if [ ! -f $pkgdir/usr/bin/$_add_group.service ]; then
+ install -Dm644 $_add_group.service $pkgdir/etc/systemd/system/$_add_group.service
+ fi
+
+ #install -Dm755 $_add_group.script $pkgdir/usr/bin/$_add_group
+ #install -Dm644 $_add_group.service $pkgdir/etc/systemd/system/$_add_group.service
}
package_liblightdm-qt5-guest() {