makedeb


proxmox-no-popup 1.0.0-1


Remove Proxmox's "No valid subscription" popup.

Viewing /PKGBUILD.

View raw.

Click here to go back to the Git tree for proxmox-no-popup.

# Maintainer: Menci <huanghaorui301@gmail.com>

pkgname=proxmox-no-popup
pkgver=1.0.0
pkgrel=1
pkgdesc="Remove Proxmox's \"No valid subscription\" popup."
license=('MIT')
arch=('any')
source=(
	apt-hook
	hook.sh
)
md5sums=(
	SKIP
	SKIP
)

package() {
    install -Dm644 "apt-hook" "${pkgdir}/etc/apt/apt.conf.d/90proxmox-no-popup"
    install -Dm755 "hook.sh" "${pkgdir}/usr/share/proxmox-no-popup/hook.sh"

    # Add install scripts
    postinst="src/postinst"
    echo '[ "$1" = "upgrade" ] && exit 0' > "${srcdir}/postinst"
    echo "/usr/share/proxmox-no-popup/hook.sh || true" >> "${srcdir}/postinst"
    prerm="src/prerm"
    echo '[ "$1" = "upgrade" ] && exit 0' > "${srcdir}/prerm"
    echo "/usr/share/proxmox-no-popup/hook.sh revert || true" >> "${srcdir}/prerm"
}