Browse Source

Use xz to compress due to lack support for zstd on apt server

Jaap Marcus 3 years ago
parent
commit
5ba1805726
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/hst_autocompile.sh

+ 3 - 3
src/hst_autocompile.sh

@@ -426,7 +426,7 @@ if [ "$NGINX_B" = true ] ; then
 
 
         # Build the package
         # Build the package
         echo Building Nginx DEB
         echo Building Nginx DEB
-        dpkg-deb --build $BUILD_DIR_HESTIANGINX $DEB_DIR
+        dpkg-deb --compression=xz --build $BUILD_DIR_HESTIANGINX $DEB_DIR
     fi
     fi
 
 
     if [ "$BUILD_RPM" = true ]; then
     if [ "$BUILD_RPM" = true ]; then
@@ -577,7 +577,7 @@ if [ "$PHP_B" = true ] ; then
         # Build the package
         # Build the package
         echo Building PHP DEB
         echo Building PHP DEB
         [ "$HESTIA_DEBUG" ] && echo DEBUG: dpkg-deb --build $BUILD_DIR_HESTIAPHP $DEB_DIR
         [ "$HESTIA_DEBUG" ] && echo DEBUG: dpkg-deb --build $BUILD_DIR_HESTIAPHP $DEB_DIR
-        dpkg-deb --build $BUILD_DIR_HESTIAPHP $DEB_DIR
+        dpkg-deb  --compression=xz --build $BUILD_DIR_HESTIAPHP $DEB_DIR
     fi
     fi
 
 
     if [ "$BUILD_RPM" = true ]; then
     if [ "$BUILD_RPM" = true ]; then
@@ -683,7 +683,7 @@ if [ "$HESTIA_B" = true ]; then
           chmod +x $BUILD_DIR_HESTIA/DEBIAN/preinst
           chmod +x $BUILD_DIR_HESTIA/DEBIAN/preinst
   
   
           echo Building Hestia DEB
           echo Building Hestia DEB
-          dpkg-deb --build $BUILD_DIR_HESTIA $DEB_DIR
+          dpkg-deb --compression=xz --build $BUILD_DIR_HESTIA $DEB_DIR
       fi
       fi
   
   
       if [ "$BUILD_RPM" = true ]; then
       if [ "$BUILD_RPM" = true ]; then