packaging
build-and-publish / build (Raccoon, ubuntu:26.04, NEXUS_PASS_RACCOON, NEXUS_REPO_RACCOON, NEXUS_USER_RACCOON, raccoon) (push) Successful in 3m40s
build-and-publish / build (Trixie, debian:13, NEXUS_PASS_TRIXIE, NEXUS_REPO_TRIXIE, NEXUS_USER_TRIXIE, trixie) (push) Successful in 3m30s

This commit is contained in:
theraw
2026-06-20 20:29:38 +00:00
parent fd768828b7
commit f2efec6f5f
5 changed files with 94 additions and 20 deletions
+19 -7
View File
@@ -99,13 +99,25 @@ jobs:
"${pkg_name}" "${VERSION}" "${ARCH}" "${conflicts}" "${conflicts}" "${pkg_name}" "${TARGET}" \
> "${deb_dir}/control"
# Shared maintainer scripts:
# preinst — backs up /nginx before an upgrade unpacks (so admin
# configs survive the migration off dpkg tracking).
# postinst — restores that backup, then seeds /nginx defaults
# without overwriting any file already there.
cp "${REPO_ROOT}/build/deb/preinst" "${deb_dir}/preinst"
cp "${REPO_ROOT}/build/deb/postinst" "${deb_dir}/postinst"
# Per-package maintainer scripts:
# twiy:
# preinst — backs up /nginx before an upgrade unpacks (so
# admin configs survive the migration off dpkg
# tracking).
# postinst — restores that backup, then seeds any MISSING
# /nginx default after asking the admin (Y/N per
# file); existing configs are never replaced.
# twiy-raweb:
# preinst/postinst — NEVER touch /nginx (no create, update,
# replace, remove, or chown). Only the binary,
# systemd unit, nginx user and log dir are updated.
if [ "${pkg_name}" = "twiy-raweb" ]; then
cp "${REPO_ROOT}/build/deb/preinst-raweb" "${deb_dir}/preinst"
cp "${REPO_ROOT}/build/deb/postinst-raweb" "${deb_dir}/postinst"
else
cp "${REPO_ROOT}/build/deb/preinst" "${deb_dir}/preinst"
cp "${REPO_ROOT}/build/deb/postinst" "${deb_dir}/postinst"
fi
chmod 755 "${deb_dir}/preinst" "${deb_dir}/postinst"
dpkg-deb --build "${pkg_dir}"