Version update
This commit is contained in:
@@ -85,29 +85,18 @@ jobs:
|
||||
done
|
||||
|
||||
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
|
||||
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' \
|
||||
"${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}"
|
||||
|
||||
Reference in New Issue
Block a user