Overview

Request 2073 (accepted)

Fix warnings caused by duplicate configuration-file symlinks


debian.changelog Changed
x
 
1
@@ -1,3 +1,9 @@
2
+libkolabxml (1.2~dev20160909-0~kolab7) unstable; urgency=low
3
+
4
+  * Fix warnings caused by duplicate configuration-file symlinks
5
+
6
+ -- Christoph Erhardt <kolab@sicherha.de>  Sun, 04 Jun 2017 12:02:01 +0200
7
+
8
 libkolabxml (1.2~dev20160909-0~kolab6) unstable; urgency=low
9
 
10
   * Prioritize kolabformat library appropriately
11
debian.tar.gz/php-kolabformat.postinst Changed
43
 
1
@@ -6,13 +6,17 @@
2
 #DEBHELPER#
3
 
4
 if [ -d "/etc/php/7.0/mods-available" ]; then
5
-    inidir=/etc/php/7.0/mods-available
6
+    basedir=/etc/php/7.0
7
+    inidir=${basedir}/mods-available
8
 elif [ -d "/etc/php/mods-available" ]; then
9
-    inidir=/etc/php/mods-available
10
+    basedir=/etc/php
11
+    inidir=${basedir}/mods-available
12
 elif [ -d "/etc/php5/mods-available" ]; then
13
-    inidir=/etc/php5/mods-available
14
+    basedir=/etc/php5
15
+    inidir=${basedir}/mods-available
16
 else
17
-    inidir=/etc/php5/conf.d/
18
+    basedir=/etc/php5
19
+    inidir=${basedir}/conf.d
20
 fi
21
 
22
 module=kolabformat
23
@@ -42,6 +46,19 @@
24
        fi
25
    fi
26
 
27
+   # Remove module symlinks with wrong priority possibly left over from an old
28
+   # installation
29
+   if [ -x "$(which phpquery 2>/dev/null)" ]; then
30
+       sapis=$(phpquery -S)
31
+   elif [ -x "$(which php5query 2>/dev/null)" ]; then
32
+       sapis=$(php5query -S)
33
+   fi
34
+   for sapi in ${sapis}; do
35
+       if [ -L ${basedir}/${sapi}/conf.d/20-${inifile} ]; then
36
+           rm ${basedir}/${sapi}/conf.d/20-${inifile}
37
+       fi
38
+   done
39
+
40
    # Enable the module
41
    if [ -x "$(which phpenmod 2>/dev/null)" ]; then
42
        phpenmod ${module}/${priority:-20}
43
libkolabxml.dsc Changed
24
 
1
@@ -2,7 +2,7 @@
2
 Source: libkolabxml
3
 Binary: libkolabxml1v5, php-kolabformat, python-kolabformat, libkolabxml-dev
4
 Architecture: any
5
-Version: 1.2~dev20160909-0~kolab6
6
+Version: 1.2~dev20160909-0~kolab7
7
 Maintainer: Kolab Systems AG <contact@kolabsystems.com>
8
 Uploaders: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>
9
 Homepage: http://git.kolab.org/libkolabxml
10
@@ -21,11 +21,11 @@
11
                python-dev,
12
                swig (>= 2.0),
13
                xsdcxx
14
-Package-List:
15
+Package-List: 
16
  libkolabxml-dev deb libdevel optional
17
  libkolabxml1v5 deb libs optional
18
  php-kolabformat deb libs optional
19
  python-kolabformat deb python optional
20
-Files:
21
+Files: 
22
  00000000000000000000000000000000 0 libkolabxml-1.2.tar.gz
23
  00000000000000000000000000000000 0 debian.tar.gz
24
Refresh
Refresh
Request History
Christoph Erhardt's avatar

sicherha created request almost 8 years ago

Fix warnings caused by duplicate configuration-file symlinks


Christoph Erhardt's avatar

sicherha accepted request almost 8 years ago

Please add a comment