diff --git a/debian/control b/debian/control index e59e11d8..e1ed18c7 100644 --- a/debian/control +++ b/debian/control @@ -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. diff --git a/debian/postinst b/debian/postinst index 00fd1803..50640765 100644 --- a/debian/postinst +++ b/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 diff --git a/packaging/obs/bareos-webui.dsc b/packaging/obs/bareos-webui.dsc index bf7ee8ed..a4ea9354 100644 --- a/packaging/obs/bareos-webui.dsc +++ b/packaging/obs/bareos-webui.dsc @@ -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 Standards-Version: 3.9.1 Vcs-Browser: https://github.com/bareos/bareos-webui.git