diff --git a/docs/en_US/release_notes_4_26.rst b/docs/en_US/release_notes_4_26.rst index e9e58513f..2f3240404 100644 --- a/docs/en_US/release_notes_4_26.rst +++ b/docs/en_US/release_notes_4_26.rst @@ -28,4 +28,5 @@ Bug fixes | `Issue #5751 `_ - Enable the 'Configure' and 'View log' menu option when the server taking longer than usual time to start. | `Issue #5754 `_ - Fixed an issue where schema diff is not working when providing the options to Foreign Data Wrapper, Foreign Server, and User Mapping. | `Issue #5766 `_ - Fixed string indices must be integers issue for PostgreSQL < 9.3. -| `Issue #5773 `_ - Fixed an issue where the application ignores the fixed port configuration value. \ No newline at end of file +| `Issue #5773 `_ - Fixed an issue where the application ignores the fixed port configuration value. +| `Issue #5775 `_ - Ensure that 'setup-web.sh' should work in Debian 10. \ No newline at end of file diff --git a/pkg/linux/setup-web.sh b/pkg/linux/setup-web.sh index 72ac34e6a..c74d4dc8d 100755 --- a/pkg/linux/setup-web.sh +++ b/pkg/linux/setup-web.sh @@ -30,7 +30,7 @@ if [ -f /etc/redhat-release ]; then IS_REDHAT=1 APACHE=httpd echo "Setting up pgAdmin 4 in web mode on a Redhat platform..." -elif [[ ${UNAME} =~ "Ubuntu" ]] || [[ ${UNAME} =~ "debian" ]]; then +elif [[ ${UNAME} =~ "Ubuntu" ]] || [[ ${UNAME} =~ "Debian" ]]; then IS_DEBIAN=1 APACHE=apache2 echo "Setting up pgAdmin 4 in web mode on a Debian platform..." @@ -77,9 +77,15 @@ if [ ${IS_DEBIAN} == 1 ]; then case ${RESPONSE} in y|Y ) - a2enmod wsgi 1> /dev/null - a2enconf pgadmin4 1> /dev/null - ;; + # Debian uses a different path to Ubuntu + if [[ ${UNAME} =~ "Debian" ]]; then + /sbin/a2enmod wsgi 1> /dev/null + /sbin/a2enconf pgadmin4 1> /dev/null + then + /usr/sbin/a2enmod wsgi 1> /dev/null + /usr/sbin/a2enconf pgadmin4 1> /dev/null + fi + ;; * ) exit 1;; esac