File: bug-263350-now-apache-modconf.patch

package info (click to toggle)
wwwconfig-common 0.3.0
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 488 kB
  • sloc: sh: 952; makefile: 5
file content (44 lines) | stat: -rw-r--r-- 1,698 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
From: Jeremy Lain <jeremy.laine@polytechnique.org>

Hej Ola,

I noticed that wwwconfig-common 0.0.38 is supposed to replace calls to
modules-config by apache-modconf, however only one call was replaced
and the "which" test is still applied to modules-config, leaving the
apache-php.sh script in an odd intermediate situation.

The attached patch replaces the remaining calls to modules-config by
apache-modconf.

Med vnliga hlsningar,

Jeremy

--- wwwconfig-common/apache-php.sh   2004-08-06 22:39:27.000000000 +0200
+++ wwwconfig-common/apache-php.sh       2004-08-20 11:04:07.000000000 +0200
@@ -14,6 +14,8 @@
 #      20040806 Pierre Habouzit <pierre.habouzit@m4x.org>
 #              Changed from modules-config to apache-modconf. Just a name
 #              change, no functionality changed.
+#      20040820 Jeremy Laine <jeremy.laine@m4x.org>
+#              Replace remaining calls to modules-config by apache-modconf.
 # Needs:       $phpver - the php version to use.
 #              $phpini - the php config file to use.
 #              $server - the apache server to use,
@@ -31,13 +33,13 @@
     error="No php ini file to check for."
 elif [ ! -f $phpini ] ; then
     error="Php config file $phpini not found."
-elif [ -z $(which modules-config) ] ; then
-    error="Could not find modules-config."
+elif [ -z $(which apache-modconf) ] ; then
+    error="Could not find apache-modconf."
 else
     phpverm="mod_"$phpver
     phpstatus=`apache-modconf $server query $phpverm || true`
     if [ -z "$phpstatus" ] ; then
-        modules-config $server enable $phpverm
+        apache-modconf $server enable $phpverm
         # Uncomment successful.
         status=uncomment
     else