From a999551d22d05fa6857aea6675f23561c2e63cd8 Mon Sep 17 00:00:00 2001 From: theraw Date: Mon, 25 May 2026 22:05:16 +0000 Subject: [PATCH] Version update --- .gitea/workflows/build-publish.yml | 33 ++++++++++-------------------- 1 file changed, 11 insertions(+), 22 deletions(-) diff --git a/.gitea/workflows/build-publish.yml b/.gitea/workflows/build-publish.yml index e15ed4a..4958f00 100644 --- a/.gitea/workflows/build-publish.yml +++ b/.gitea/workflows/build-publish.yml @@ -85,29 +85,18 @@ jobs: done mkdir -p "${deb_dir}" - cat > "${deb_dir}/control" < -Description: Nginx L7 DDoS Protection (${pkg_name}), built by RAWeb CI for ${TARGET}. -EOF + printf 'Package: %s\nVersion: %s\nSection: base\nPriority: optional\nArchitecture: %s\nDepends: libjemalloc2, libsystemd0\nConflicts: %s\nReplaces: %s\nMaintainer: Julio \nDescription: Nginx L7 DDoS Protection (%s), built by RAWeb CI for %s.\n' \ + "${pkg_name}" "${VERSION}" "${ARCH}" "${conflicts}" "${conflicts}" "${pkg_name}" "${TARGET}" \ + > "${deb_dir}/control" - cat > "${deb_dir}/postinst" <<'EOFPOSTINST' -#!/bin/bash -useradd -r -s /bin/false nginx 2>/dev/null || true -install -d -o nginx -g nginx -m 0755 /var/log/nginx -chown -R nginx:nginx /var/log/nginx /nginx 2>/dev/null || true -systemctl daemon-reload 2>/dev/null || true -systemctl enable nginx.service 2>/dev/null || true -systemctl restart nginx.service 2>/dev/null || true -exit 0 -EOFPOSTINST + printf '%s\n' '#!/bin/bash' \ + 'useradd -r -s /bin/false nginx 2>/dev/null || true' \ + 'install -d -o nginx -g nginx -m 0755 /var/log/nginx' \ + 'chown -R nginx:nginx /var/log/nginx /nginx 2>/dev/null || true' \ + 'systemctl daemon-reload 2>/dev/null || true' \ + 'systemctl enable nginx.service 2>/dev/null || true' \ + 'systemctl restart nginx.service 2>/dev/null || true' \ + 'exit 0' > "${deb_dir}/postinst" chmod 755 "${deb_dir}/postinst" dpkg-deb --build "${pkg_dir}"