packaging
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user