update version

This commit is contained in:
theraw
2026-05-25 21:48:21 +00:00
parent bc8ec6aabe
commit 1dd615cf97
+20 -20
View File
@@ -86,28 +86,28 @@ jobs:
mkdir -p "${deb_dir}" mkdir -p "${deb_dir}"
cat > "${deb_dir}/control" <<EOF cat > "${deb_dir}/control" <<EOF
Package: ${pkg_name} Package: ${pkg_name}
Version: ${VERSION} Version: ${VERSION}
Section: base Section: base
Priority: optional Priority: optional
Architecture: ${ARCH} Architecture: ${ARCH}
Depends: libjemalloc2, libsystemd0 Depends: libjemalloc2, libsystemd0
Conflicts: ${conflicts} Conflicts: ${conflicts}
Replaces: ${conflicts} Replaces: ${conflicts}
Maintainer: Julio <me@julio.al> Maintainer: Julio <me@julio.al>
Description: Nginx L7 DDoS Protection (${pkg_name}), built by RAWeb CI for ${TARGET}. Description: Nginx L7 DDoS Protection (${pkg_name}), built by RAWeb CI for ${TARGET}.
EOF EOF
cat > "${deb_dir}/postinst" <<'EOFPOSTINST' cat > "${deb_dir}/postinst" <<'EOFPOSTINST'
#!/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 exit 0
EOFPOSTINST EOFPOSTINST
chmod 755 "${deb_dir}/postinst" chmod 755 "${deb_dir}/postinst"
dpkg-deb --build "${pkg_dir}" dpkg-deb --build "${pkg_dir}"