Ensure file/directory ownership is correct.

This commit is contained in:
Dave Page 2020-03-12 15:35:43 +00:00
parent a684b48fb3
commit e43f58d11f

View File

@ -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 --build "${SERVERROOT}" "${DISTROOT}/${APP_NAME}-server_${APP_LONG_VERSION}_${OS_NAME}_${OS_VERSION}_amd64.deb"
dpkg-deb --root-owner-group --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 --build "${DESKTOPROOT}" "${DISTROOT}/${APP_NAME}-desktop_${APP_LONG_VERSION}_${OS_NAME}_${OS_VERSION}_amd64.deb"
dpkg-deb --root-owner-group --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 --build "${WEBROOT}" "${DISTROOT}/${APP_NAME}-web_${APP_LONG_VERSION}_${OS_NAME}_${OS_VERSION}_all.deb"
dpkg-deb --root-owner-group --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 --build "${METAROOT}" "${DISTROOT}/${APP_NAME}_${APP_LONG_VERSION}_${OS_NAME}_${OS_VERSION}_all.deb"
dpkg-deb --root-owner-group --build "${METAROOT}" "${DISTROOT}/${APP_NAME}_${APP_LONG_VERSION}_${OS_NAME}_${OS_VERSION}_all.deb"