[arch-commits] Commit in jenkins/trunk (jenkins.install)

Christian Hesse eworm at archlinux.org
Tue Jun 13 16:10:26 UTC 2017


    Date: Tuesday, June 13, 2017 @ 16:10:25
  Author: eworm
Revision: 236619

update install file for pacman hooks

* explain why we need systemd-sysusers
* drop invocations no longer required

Modified:
  jenkins/trunk/jenkins.install

-----------------+
 jenkins.install |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

Modified: jenkins.install
===================================================================
--- jenkins.install	2017-06-13 16:02:26 UTC (rev 236618)
+++ jenkins.install	2017-06-13 16:10:25 UTC (rev 236619)
@@ -1,9 +1,7 @@
 post_install() {
+  # We need to know uid and gid to create /var/lib/jenkins with proper
+  # permissions. So keep systemd-sysusers invocation here despite having
+  # pacman hooks.
   systemd-sysusers jenkins.conf
   [[ -d var/lib/jenkins ]] || install -dm 750 -o jenkins -g jenkins var/lib/jenkins
-  systemd-tmpfiles --create jenkins.conf
 }
-
-post_upgrade() {
-  (( $(vercmp $2 '1.633-1') < 0 )) && systemd-sysusers jenkins.conf || true
-}



More information about the arch-commits mailing list