diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fb0bb4f..ec28bcb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -76,20 +76,16 @@ jobs: done mkdir -p ${DEB_DIR} - cat < ${DEB_DIR}/control -Package: ${PKG_NAME} -Version: ${VERSION} -Section: base -Priority: optional -Architecture: ${ARCH} -Maintainer: You -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 " >> ${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}