Christian Heusel pushed to branch main at Arch Linux / Packaging / Packages / znc
Commits: 7350af89 by Christian Heusel at 2024-02-28T22:09:07+01:00 upgpkg: 1.9.0-3: add post_upgrade hook to warn about breakage - - - - - 3 changed files: - .SRCINFO - PKGBUILD - znc.install Changes: ===================================== .SRCINFO ===================================== @@ -1,7 +1,7 @@ pkgbase = znc pkgdesc = An IRC bouncer with modules & scripts support pkgver = 1.9.0 - pkgrel = 2 + pkgrel = 3 url = https://wiki.znc.in/ install = znc.install arch = x86_64 ===================================== PKGBUILD ===================================== @@ -6,7 +6,7 @@ pkgname=znc pkgver=1.9.0 -pkgrel=2 +pkgrel=3 pkgdesc='An IRC bouncer with modules & scripts support' url='https://wiki.znc.in/' license=('Apache-2.0') ===================================== znc.install ===================================== @@ -1,16 +1,20 @@ -#/bin/bash +#!/bin/bash # arg 1: the new package version post_install() { - echo '==> Use 'znc --makeconf' as user znc to generate your first config' + echo "==> Use 'znc --makeconf' as user znc to generate your first config" } # arg 1: the new package version # arg 2: the old package version post_upgrade() { - if (( "$(vercmp $2 1.0-4)" < 0 )); then + if (( "$(vercmp "$2" 1.0-4)" < 0 )); then usermod -d /var/lib/znc znc 2>/dev/null && echo '==> znc home directory has moved to /var/lib/znc' fi + + if (( "$(vercmp "$2" "1.9")" < 0 )); then + echo '==> the znc data directory has moved to /var/lib/znc, please see the znc wiki article for migration instructions' + fi : } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/znc/-/commit/7350af895616420f8cd535fc6a827b0a08b2a8bb -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/znc/-/commit/7350af895616420f8cd535fc6a827b0a08b2a8bb You're receiving this email because of your account on gitlab.archlinux.org.