Source: gosa
Severity: important
Tags: patch
Hi Mike and everybody else,
I run into a bug when installing GOsa in combination with
javascript-common. When setting up gosa, it detects the directory
'/etc/lighttpd/conf-available' from the unpacked javascript-common
package [1]. However there is no '/etc/lighttpd/conf-enabled/' yet,
because it's created later when configuring javascript-common [2],
and the postinst script gosa.postinst fails with an error. It cannot
create the link:
ln -s /etc/gosa/gosa-lighttpd.conf
/etc/lighttpd/conf-enabled/99gosa-lighttpd.conf
Attached is a patch to create the missing directory if needed.
Regards,
Andi
[1] https://packages.debian.org/jessie/all/javascript-common/filelist
[2]
http://anonscm.debian.org/cgit/pkg-javascript/javascript-common.git/tree/debian/javascript-common.postinst#n18
>From b9302e044f0ccfa9fcb1b4c42b114816ab551bdc Mon Sep 17 00:00:00 2001
From: "Andreas B. Mundt" <[email protected]>
Date: Sat, 9 Aug 2014 12:37:23 +0200
Subject: [PATCH] Fix lighttpd missing directory.
---
debian/gosa.postinst | 3 +++
1 file changed, 3 insertions(+)
diff --git a/debian/gosa.postinst b/debian/gosa.postinst
index 405ff57..aa81b38 100755
--- a/debian/gosa.postinst
+++ b/debian/gosa.postinst
@@ -119,6 +119,9 @@ if [ -d /etc/lighttpd/conf-available ]; then
echo "Making /gosa available in /etc/lighttpd/conf-enabled/"
# Add GOsa include file
+ if [ ! -d /etc/lighttpd/conf-enabled/ ] ; then
+ mkdir -p /etc/lighttpd/conf-enabled
+ fi
ln -s /etc/gosa/gosa-lighttpd.conf /etc/lighttpd/conf-enabled/99gosa-lighttpd.conf
fi
--
2.0.1