Mark the Apache HTTPD config file as such in the web DEB and RPM packages. Fixes #6356

This commit is contained in:
Dave Page 2021-03-29 10:35:50 +01:00
parent be31fb08f1
commit 9c69c1a277
4 changed files with 25 additions and 1 deletions

View File

@ -11,6 +11,7 @@ notes for it.
.. toctree::
:maxdepth: 1
release_notes_5_2
release_notes_5_1
release_notes_5_0
release_notes_4_30

View File

@ -0,0 +1,19 @@
************
Version 5.1
************
Release date: 2021-04-22
This release contains a number of bug fixes and new features since the release of pgAdmin4 5.1.
New features
************
Housekeeping
************
Bug fixes
*********
| `Issue #6356 <https://redmine.postgresql.org/issues/6356>`_ - Mark the Apache HTTPD config file as such in the web DEB and RPM packages.

View File

@ -72,6 +72,10 @@ fakeroot dpkg-deb --build "${DESKTOPROOT}" "${DISTROOT}/${APP_NAME}-desktop_${AP
echo "Creating the web package..."
mkdir "${WEBROOT}/DEBIAN"
cat << EOF > "${WEBROOT}/DEBIAN/conffiles"
/etc/apache2/conf-available/pgadmin4.conf
EOF
cat << EOF > "${WEBROOT}/DEBIAN/control"
Package: ${APP_NAME}-web
Version: ${APP_LONG_VERSION}

View File

@ -159,7 +159,7 @@ cp -rfa %{pga_build_root}/web/* \${RPM_BUILD_ROOT}
%files
/usr/pgadmin4/bin/*
/etc/httpd/conf.d/*
%config(noreplace) /etc/httpd/conf.d/*
EOF
mkdir -p "${WEBROOT}/etc/httpd/conf.d"