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"