Package: ocsinventory-server Version: 1.02-2 Severity: wishlist Hello,
Installing ocsinventory-server and ocsinventory-reports does not enable the required apache modules. I do not find an apache policy, so I provide a patch to enable the required modules. --8<---------------cut here---------------start------------->8--- git log -p 9025d749678b6ae1cf0d555df08358b80547f9f4..e7a6d2792d91eb5d0174816cc80f3b4234eac60c | git shortlog Daniel Dehennin (1): Enable required apache modules. git diff --stat 9025d749678b6ae1cf0d555df08358b80547f9f4..e7a6d2792d91eb5d0174816cc80f3b4234eac60c debian/ocsinventory-reports.postinst | 4 ++++ debian/ocsinventory-server.postinst | 3 +++ 2 files changed, 7 insertions(+), 0 deletions(-) --8<---------------cut here---------------end--------------->8--- Regards. -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (90, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.30-rc6+hati.1 (SMP w/2 CPU cores; PREEMPT) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
diff --git a/debian/ocsinventory-reports.postinst b/debian/ocsinventory-reports.postinst index d9c16c3..490c6fe 100644 --- a/debian/ocsinventory-reports.postinst +++ b/debian/ocsinventory-reports.postinst @@ -10,6 +10,10 @@ db_version 2.0 || [ $? -lt 30 ] if [ "$1" = "configure" ]; then + # enable required apache modules + a2enmod php5 + a2enmod rewrite + # only on a new install if [ "$2" = "" ]; then varpath="/var/lib/ocsinventory-server" diff --git a/debian/ocsinventory-server.postinst b/debian/ocsinventory-server.postinst index b79af2e..9712151 100644 --- a/debian/ocsinventory-server.postinst +++ b/debian/ocsinventory-server.postinst @@ -10,6 +10,9 @@ db_version 2.0 || [ $? -lt 30 ] if [ "$1" = "configure" ]; then + # Enable perl module + a2enmod perl + # only on a new install if [ "$2" = "" ] || [ ! -f /etc/ocsinventory/ocsinventory.conf ]; then pkgpath="/usr/share/ocsinventory-server"