Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
webui: cleanup Debian PHP dependencies
Browse files Browse the repository at this point in the history
Debian PHP dependencies now uses the platform default, but offers the possibility to use PHP5, if available.
The previous used dependencies php7 have been incorrect. It should have been php7.0.
However, in the next Debian release it will be php7.2, so sticking to the platform default might be the best option.
Apache PHP is not enabled any longer,
as this is done by the package libapache2-mod-php*.
  • Loading branch information
joergsteffens committed Jun 21, 2018
1 parent 274c5c3 commit 890997a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 10 deletions.
15 changes: 8 additions & 7 deletions debian/control
Expand Up @@ -13,13 +13,14 @@ Vcs-Browser: https://github.com/bareos/bareos-webui.git

Package: bareos-webui
Architecture: all
Depends: apache2 | httpd, libapache2-mod-php | libapache2-mod-php5 | libapache2-mod-php7 | php | php5 | php7 | php-cgi,
php-common | php5-common | php7-common,
php-date | php5-date | php7-date,
php-intl | php5-intl | php7-intl,
php-json | php5-json | php7-json,
php-curl | php5-curl | php7-curl,
php-gettext | php5-gettext | php7-gettext,
Depends: apache2 | httpd,
libapache2-mod-php | libapache2-mod-php5,
php-common | php5-common,
php-date | php5-date,
php-intl | php5-intl,
php-json | php5-json,
php-curl | php5-curl,
php-gettext | php5-gettext,
${misc:Depends}
Description: Backup Archiving Recovery Open Sourced - webui
This package contains the webui.
12 changes: 10 additions & 2 deletions debian/postinst
@@ -1,6 +1,14 @@
#!/bin/sh

which a2enmod && a2enmod rewrite setenv php7 2> /dev/null || true
which a2enmod && a2enmod rewrite setenv php5 2> /dev/null || true
which a2enmod && a2enmod rewrite 2> /dev/null || true
which a2enmod && a2enmod setenv 2> /dev/null || true

# PHP is required. However, there are different versions.
# libapache2-mod-php* in Debian based distributions enable PHP by default.
#which a2enmod && a2enmod php7.2 2> /dev/null || true
#which a2enmod && a2enmod php7.0 2> /dev/null || true
#which a2enmod && a2enmod php7 2> /dev/null || true
#which a2enmod && a2enmod php5 2> /dev/null || true

which a2enconf && a2enconf bareos-webui || true

2 changes: 1 addition & 1 deletion packaging/obs/bareos-webui.dsc
Expand Up @@ -2,7 +2,7 @@ Format: 1.0
Source: bareos-webui
Binary: bareos-webui
Architecture: all
Version: 15.2.1
Version: 0.0.0
Maintainer: Bareos Packager <packager@bareos.com>
Standards-Version: 3.9.1
Vcs-Browser: https://github.com/bareos/bareos-webui.git
Expand Down

0 comments on commit 890997a

Please sign in to comment.