diff --git a/.gitea/workflows/build-publish.yml b/.gitea/workflows/build-publish.yml index b76c8fa..e15ed4a 100644 --- a/.gitea/workflows/build-publish.yml +++ b/.gitea/workflows/build-publish.yml @@ -86,28 +86,28 @@ jobs: mkdir -p "${deb_dir}" cat > "${deb_dir}/control" < - Description: Nginx L7 DDoS Protection (${pkg_name}), built by RAWeb CI for ${TARGET}. - EOF +Package: ${pkg_name} +Version: ${VERSION} +Section: base +Priority: optional +Architecture: ${ARCH} +Depends: libjemalloc2, libsystemd0 +Conflicts: ${conflicts} +Replaces: ${conflicts} +Maintainer: Julio +Description: Nginx L7 DDoS Protection (${pkg_name}), built by RAWeb CI for ${TARGET}. +EOF 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 +#!/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 chmod 755 "${deb_dir}/postinst" dpkg-deb --build "${pkg_dir}"