Version update
build-and-publish / build (Raccoon, ubuntu:26.04, NEXUS_PASS_RACCOON, NEXUS_REPO_RACCOON, NEXUS_USER_RACCOON, raccoon) (push) Successful in 3m32s
build-and-publish / build (Trixie, debian:13, NEXUS_PASS_TRIXIE, NEXUS_REPO_TRIXIE, NEXUS_USER_TRIXIE, trixie) (push) Successful in 3m23s

This commit is contained in:
theraw
2026-05-25 22:05:16 +00:00
parent 1dd615cf97
commit a999551d22
+11 -22
View File
@@ -85,29 +85,18 @@ jobs:
done done
mkdir -p "${deb_dir}" mkdir -p "${deb_dir}"
cat > "${deb_dir}/control" <<EOF printf 'Package: %s\nVersion: %s\nSection: base\nPriority: optional\nArchitecture: %s\nDepends: libjemalloc2, libsystemd0\nConflicts: %s\nReplaces: %s\nMaintainer: Julio <me@julio.al>\nDescription: Nginx L7 DDoS Protection (%s), built by RAWeb CI for %s.\n' \
Package: ${pkg_name} "${pkg_name}" "${VERSION}" "${ARCH}" "${conflicts}" "${conflicts}" "${pkg_name}" "${TARGET}" \
Version: ${VERSION} > "${deb_dir}/control"
Section: base
Priority: optional
Architecture: ${ARCH}
Depends: libjemalloc2, libsystemd0
Conflicts: ${conflicts}
Replaces: ${conflicts}
Maintainer: Julio <me@julio.al>
Description: Nginx L7 DDoS Protection (${pkg_name}), built by RAWeb CI for ${TARGET}.
EOF
cat > "${deb_dir}/postinst" <<'EOFPOSTINST' printf '%s\n' '#!/bin/bash' \
#!/bin/bash 'useradd -r -s /bin/false nginx 2>/dev/null || true' \
useradd -r -s /bin/false nginx 2>/dev/null || true 'install -d -o nginx -g nginx -m 0755 /var/log/nginx' \
install -d -o nginx -g nginx -m 0755 /var/log/nginx 'chown -R nginx:nginx /var/log/nginx /nginx 2>/dev/null || true' \
chown -R nginx:nginx /var/log/nginx /nginx 2>/dev/null || true 'systemctl daemon-reload 2>/dev/null || true' \
systemctl daemon-reload 2>/dev/null || true 'systemctl enable nginx.service 2>/dev/null || true' \
systemctl enable nginx.service 2>/dev/null || true 'systemctl restart nginx.service 2>/dev/null || true' \
systemctl restart nginx.service 2>/dev/null || true 'exit 0' > "${deb_dir}/postinst"
exit 0
EOFPOSTINST
chmod 755 "${deb_dir}/postinst" chmod 755 "${deb_dir}/postinst"
dpkg-deb --build "${pkg_dir}" dpkg-deb --build "${pkg_dir}"