Fix Redhat installation directory permission.

This commit is contained in:
Khushboo Vashi 2024-06-20 10:39:24 +05:30
parent 31a91409a0
commit 2b45a1f7d5

View File

@ -80,6 +80,8 @@ fi
cp -rfa %{pga_build_root}/server/* \${RPM_BUILD_ROOT}
%files
%defattr(755,root,root,755)
%dir /usr/pgadmin4
/usr/pgadmin4/*
EOF
@ -121,6 +123,7 @@ cp -rfa %{pga_build_root}/desktop/* \${RPM_BUILD_ROOT}
/bin/xdg-icon-resource forceupdate
%files
%defattr(755,root,root,755)
/usr/pgadmin4/bin/*
/usr/share/icons/hicolor/128x128/apps/*
/usr/share/icons/hicolor/64x64/apps/*
@ -131,7 +134,9 @@ cp -rfa %{pga_build_root}/desktop/* \${RPM_BUILD_ROOT}
/usr/pgadmin4/sbom-desktop.json
EOF
# Build the Redhat package for the server
# Build the Redhat package for the desktop
rpmbuild --define "pga_build_root ${BUILDROOT}" -bb "${BUILDROOT}/desktop.spec"
@ -168,6 +173,7 @@ The web interface for pgAdmin, hosted under Apache HTTPD. pgAdmin is the most po
cp -rfa %{pga_build_root}/web/* \${RPM_BUILD_ROOT}
%files
%defattr(755,root,root,755)
/usr/pgadmin4/bin/*
%config(noreplace) /etc/httpd/conf.d/*
/usr/pgadmin4/sbom-web.json