From 01f307a51946e0ca2306490bb1aaeea34d1f66e9 Mon Sep 17 00:00:00 2001 From: s3lph Date: Mon, 18 Dec 2023 19:44:51 +0100 Subject: [PATCH] feat(apt-source): run apt-update after installation --- repo.s3lph.me-apt-source/debian.control | 2 +- repo.s3lph.me-apt-source/debian.postinst | 5 +++++ repo.s3lph.me-apt-source/package.sh | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100755 repo.s3lph.me-apt-source/debian.postinst diff --git a/repo.s3lph.me-apt-source/debian.control b/repo.s3lph.me-apt-source/debian.control index 9660426..90fcc5f 100644 --- a/repo.s3lph.me-apt-source/debian.control +++ b/repo.s3lph.me-apt-source/debian.control @@ -1,5 +1,5 @@ Package: __PKGNAME__ -Version: 0.2-1 +Version: 0.2-2 Maintainer: __MAINTAINER__ Section: web Priority: optional diff --git a/repo.s3lph.me-apt-source/debian.postinst b/repo.s3lph.me-apt-source/debian.postinst new file mode 100755 index 0000000..11cb6ef --- /dev/null +++ b/repo.s3lph.me-apt-source/debian.postinst @@ -0,0 +1,5 @@ +#!/bin/bash + +if [[ "$1" == "configure" ]]; then + apt update || true +fi diff --git a/repo.s3lph.me-apt-source/package.sh b/repo.s3lph.me-apt-source/package.sh index e0c1a92..049ce59 100755 --- a/repo.s3lph.me-apt-source/package.sh +++ b/repo.s3lph.me-apt-source/package.sh @@ -11,6 +11,7 @@ cp gitkabelsalatch-s3lph.sources build/pkgdir/etc/apt/sources.list.d/gitkabelsal cp gitkabelsalatch-s3lph.asc build/pkgdir/usr/share/keyrings/gitkabelsalatch-s3lph.asc cp debian.control build/pkgdir/DEBIAN/control cp debian.conffiles build/pkgdir/DEBIAN/conffiles +cp debian.postinst build/pkgdir/DEBIAN/postinst cp debian.changelog "build/pkgdir/usr/share/doc/${PKGNAME}/changelog" cp debian.copyright "build/pkgdir/usr/share/doc/${PKGNAME}/copyright"