Skip to content

Commit

Permalink
Set the permission for the installation directory without fakeroot.
Browse files Browse the repository at this point in the history
  • Loading branch information
khushboovashi committed Jun 11, 2024
1 parent 591308f commit fa71b06
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions pkg/debian/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,8 @@ Description: The core server package for pgAdmin. pgAdmin is the most popular an
EOF

# Build the Debian package for the server
fakeroot /bin/bash
chmod -R u+rwX,go+rX,go-w "${SERVERROOT}"
dpkg-deb --build "${SERVERROOT}" "${DISTROOT}/${APP_NAME}-server_${APP_LONG_VERSION}_${OS_ARCH}.deb"
exit
fakeroot dpkg-deb --build "${SERVERROOT}" "${DISTROOT}/${APP_NAME}-server_${APP_LONG_VERSION}_${OS_ARCH}.deb"

#
# Desktop package
Expand All @@ -82,10 +80,8 @@ Description: The desktop user interface for pgAdmin. pgAdmin is the most popular
EOF

# Build the Debian package for the desktop
fakeroot /bin/bash
chmod -R u+rwX,go+rX,go-w "${DESKTOPROOT}"
dpkg-deb --build "${DESKTOPROOT}" "${DISTROOT}/${APP_NAME}-desktop_${APP_LONG_VERSION}_${OS_ARCH}.deb"
exit
fakeroot dpkg-deb --build "${DESKTOPROOT}" "${DISTROOT}/${APP_NAME}-desktop_${APP_LONG_VERSION}_${OS_ARCH}.deb"

#
# Web package
Expand Down Expand Up @@ -114,10 +110,8 @@ 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
fakeroot /bin/bash
chmod -R u+rwX,go+rX,go-w "${WEBROOT}"
dpkg-deb --build "${WEBROOT}" "${DISTROOT}/${APP_NAME}-web_${APP_LONG_VERSION}_all.deb"
exit
fakeroot dpkg-deb --build "${WEBROOT}" "${DISTROOT}/${APP_NAME}-web_${APP_LONG_VERSION}_all.deb"

#
# Meta package
Expand Down

0 comments on commit fa71b06

Please sign in to comment.