anchor.diff:        };
   
         webapps = mkOption {
  -        default = [ pkgs.tomcat6 ];
  +        default = [ tomcat ];
           description = "List containing WAR files or directories with WAR files which are web applications to be deployed on Tomcat";
         };
   
  
positive.code: 	    chown ${cfg.user}:${cfg.group} ${cfg.baseDir}/webapps
  
  	    # Symlink all the given common libs files or paths into the lib/ directory
  	    for i in ${pkgs.tomcat6} ${toString cfg.commonLibs}
  	    do
  		if [ -f $i ]
  		then
  
negative.code: 		''
  	    else ""}
  
              ${pkgs.su}/bin/su -s ${pkgs.bash}/bin/sh ${cfg.user} -c 'CATALINA_BASE=${cfg.baseDir} JAVA_HOME=${pkgs.jdk} JAVA_OPTS="${cfg.javaOpts}" CATALINA_OPTS="${cfg.catalinaOpts}" ${tomcat}/bin/startup.sh'
            '';
  
          postStop =
            ''
              echo "Stopping tomcat..."
              CATALINA_BASE=${cfg.baseDir} JAVA_HOME=${pkgs.jdk} ${pkgs.su}/bin/su -s ${pkgs.bash}/bin/sh ${cfg.user} -c ${tomcat}/bin/shutdown.sh
            '';
  
        };
  