summarylogtreecommitdiffstats
path: root/jenkins.install
blob: e86d9caa75c89a38d411c91de42cb69dc4dc5437 (plain)
1
2
3
4
5
6
7
8
9
post_install() {
  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
}