Package: apache2.2-common
Version: 2.2.3-4+b1
Tags: patch

finlandia!root(tty2):/var/tmp/work> a2enmod
Which module would you like to enable?
Your choices are: actions alias asis auth_basic auth_digest authn_alias 
authn_anon authn_dbd authn_dbm authn_default authn_file authnz_ldap authz_dbm 
authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache 
cern_meta cgi cgid charset_lite dav dav_fs dav_lock dbd deflate dir disk_cache 
dump_io env expires ext_filter file_cache filter headers ident imagemap include 
info ldap log_forensic mem_cache mime mime_magic negotiation proxy proxy_ajp 
proxy_balancer proxy_connect proxy_ftp proxy_http rewrite setenvif speling ssl 
status suexec unique_id userdir usertrack version vhost_alias
Module name?
/usr/sbin/a2enmod: line 21: [: =: unary operator expected
This module does not exist!
finlandia!root(tty2):/var/tmp/work>

This error does not need to exist and is caused by missing quotes,
patch below:

--- /usr/sbin/a2enmod   2007-04-15 16:42:24.000000000 +0200
+++ /tmp/work/a2enmod   2007-05-07 11:06:51.000000000 +0200
@@ -18,7 +18,7 @@ if [ -x /usr/sbin/apache2 ]; then
        PREFORK=`/usr/sbin/apache2 -l | grep prefork || true`
 fi
 
-if [ $MODNAME = "cgi" ] && [ -z $PREFORK ]; then
+if [ "$MODNAME" = "cgi" ] && [ -z $PREFORK ]; then
        MODNAME="cgid"
 fi
 

Regards,

        Joey

-- 
There are lies, statistics and benchmarks.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to