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}"
cat > "${deb_dir}/control" <<EOF
Package: ${pkg_name}
Version: ${VERSION}
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
Package: ${pkg_name}
Version: ${VERSION}
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'
#!/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}"