# File lib/picnic/conf.rb, line 81
    def copy_example_config_file(app_name, app_root, dest_conf_file)
      require 'fileutils'
          
      example_conf_file = example_config_file_path(app_root)
      
      puts "\n#{app_name.to_s.upcase} SERVER HAS NOT YET BEEN CONFIGURED!!!\n"
      puts "\nAttempting to copy sample configuration from '#{example_conf_file}' to '#{dest_conf_file}'...\n"
      
      unless File.exists? example_conf_file 
        puts "\nThe example conf file does not exist! The author of #{app_name} may have forgotten to include it. You'll have to create the config file manually.\n"
        exit 2
      end
      
      begin
        dest_conf_file_dir = File.dirname(dest_conf_file)
        FileUtils.mkpath(dest_conf_file_dir) unless File.exists? dest_conf_file_dir
        FileUtils.cp(example_conf_file, dest_conf_file)
      rescue Errno::EACCES
        puts "\nIt appears that you do not have permissions to create the '#{dest_conf_file}' file. Try running this command using sudo (as root).\n"
        exit 2
      rescue => e
        puts "\nFor some reason the '#{dest_conf_file}' file could not be created (#{e})."
        puts "You'll have to copy the file manually. Use '#{example_conf_file}' as a template.\n"  
        exit 2
      end
      
      puts "\nA sample configuration has been created for you in '#{dest_conf_file}'. Please edit this file to" +
        " suit your needs and then run #{app_name} again.\n"
      exit 1
    end