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