Update main.yml
This commit is contained in:
@@ -76,20 +76,16 @@ jobs:
|
||||
done
|
||||
|
||||
mkdir -p ${DEB_DIR}
|
||||
cat <<EOL > ${DEB_DIR}/control
|
||||
Package: ${PKG_NAME}
|
||||
Version: ${VERSION}
|
||||
Section: base
|
||||
Priority: optional
|
||||
Architecture: ${ARCH}
|
||||
Maintainer: You <you@example.com>
|
||||
Description: Custom NGINX build with modules and dependencies
|
||||
EOL
|
||||
echo "Package: ${PKG_NAME}" > ${DEB_DIR}/control
|
||||
echo "Version: ${VERSION}" >> ${DEB_DIR}/control
|
||||
echo "Section: base" >> ${DEB_DIR}/control
|
||||
echo "Priority: optional" >> ${DEB_DIR}/control
|
||||
echo "Architecture: ${ARCH}" >> ${DEB_DIR}/control
|
||||
echo "Maintainer: You <you@example.com>" >> ${DEB_DIR}/control
|
||||
echo "Description: Custom NGINX build with modules and dependencies" >> ${DEB_DIR}/control
|
||||
|
||||
cat <<'POSTINST_EOF' > ${DEB_DIR}/postinst
|
||||
#!/bin/bash
|
||||
useradd -r -d /usr/local/nginx -s /bin/false nginx || true
|
||||
POSTINST_EOF
|
||||
echo "#!/bin/bash" > ${DEB_DIR}/postinst
|
||||
echo "useradd -r -d /usr/local/nginx -s /bin/false nginx || true" >> ${DEB_DIR}/postinst
|
||||
chmod 755 ${DEB_DIR}/postinst
|
||||
|
||||
dpkg-deb --build ${PKG_DIR}
|
||||
|
||||
Reference in New Issue
Block a user