File: bug-119679.patch

package info (click to toggle)
wwwconfig-common 0.3.0
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 488 kB
  • sloc: sh: 952; makefile: 5
file content (15 lines) | stat: -rw-r--r-- 846 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Index: debian/woody/wwwconfig-common/apache-addtype_all.sh
diff -u debian/woody/wwwconfig-common/apache-addtype_all.sh:1.1 debian/woody/wwwconfig-common/apache-addtype_all.sh:1.2
--- debian/woody/wwwconfig-common/apache-addtype_all.sh:1.1	Tue Jan 15 15:02:57 2002
+++ debian/woody/wwwconfig-common/apache-addtype_all.sh	Wed Jan 16 17:32:45 2002
@@ -17,6 +17,10 @@
     echo "No apache server defined."
 elif [ -z "$extension" ] ; then
     echo "No extension to add with $typestr."
+elif [ ! -d "/etc/$server" ] ; then
+    echo "Warning:  Could not find configuration directory /etc/$server"
+    echo "Doing nothing for $server"
+    status=nothing
 elif [ -f $phpini ] ; then
     A=${extension#.}
     if grep -e "^[[:space:]]*AddType[[:space:]][[:space:]]*$typestr[[:space:]][[:space:]]*.*\.$A\b" /etc/$server/*.conf > /dev/null 2>&1 ; then