diff --git a/pkg/debian/build.sh b/pkg/debian/build.sh index 639b081a5..3a9295034 100755 --- a/pkg/debian/build.sh +++ b/pkg/debian/build.sh @@ -42,7 +42,7 @@ Description: The core server package for pgAdmin. pgAdmin is the most popular an EOF # Build the Debian package for the server -dpkg-deb --root-owner-group --build "${SERVERROOT}" "${DISTROOT}/${APP_NAME}-server_${APP_LONG_VERSION}_${OS_NAME}_${OS_VERSION}_amd64.deb" +fakeroot dpkg-deb --build "${SERVERROOT}" "${DISTROOT}/${APP_NAME}-server_${APP_LONG_VERSION}_${OS_NAME}_${OS_VERSION}_amd64.deb" # # Desktop package @@ -62,7 +62,7 @@ Description: The desktop user interface for pgAdmin. pgAdmin is the most popular EOF # Build the Debian package for the server -dpkg-deb --root-owner-group --build "${DESKTOPROOT}" "${DISTROOT}/${APP_NAME}-desktop_${APP_LONG_VERSION}_${OS_NAME}_${OS_VERSION}_amd64.deb" +fakeroot dpkg-deb --build "${DESKTOPROOT}" "${DISTROOT}/${APP_NAME}-desktop_${APP_LONG_VERSION}_${OS_NAME}_${OS_VERSION}_amd64.deb" # # Web package @@ -85,7 +85,7 @@ mkdir -p "${WEBROOT}/etc/apache2/conf-available" cp "${SOURCEDIR}/pkg/debian/pgadmin4.conf" "${WEBROOT}/etc/apache2/conf-available" # Build the Debian package for the web -dpkg-deb --root-owner-group --build "${WEBROOT}" "${DISTROOT}/${APP_NAME}-web_${APP_LONG_VERSION}_${OS_NAME}_${OS_VERSION}_all.deb" +fakeroot dpkg-deb --build "${WEBROOT}" "${DISTROOT}/${APP_NAME}-web_${APP_LONG_VERSION}_${OS_NAME}_${OS_VERSION}_all.deb" # # Meta package @@ -105,4 +105,4 @@ Description: Installs all required components to run pgAdmin in desktop and web EOF # Build the Debian meta package -dpkg-deb --root-owner-group --build "${METAROOT}" "${DISTROOT}/${APP_NAME}_${APP_LONG_VERSION}_${OS_NAME}_${OS_VERSION}_all.deb" +fakeroot dpkg-deb --build "${METAROOT}" "${DISTROOT}/${APP_NAME}_${APP_LONG_VERSION}_${OS_NAME}_${OS_VERSION}_all.deb"