tools/cpee in cpee-2.0.5 vs tools/cpee in cpee-2.0.6

- old
+ new

@@ -244,22 +244,20 @@ elsif command == 'delete!' Typhoeus.delete(File.join(p1,'/')) elsif command == 'new' if !File.exists?(p1) FileUtils.cp_r("#{curpath}/server/",p1) + FileUtils.cp_r("#{curpath}/archive/",p1) FileUtils.mkdir("#{p1}/instances") rescue nil FileUtils.mkdir("#{p1}/resources") rescue nil FileUtils.mkdir("#{p1}/handlerwrappers") rescue nil Dir["#{curpath}/../systemd/*.service"].each do |f| nam = File.basename f cont = File.read(f) cont.gsub!(/{CPEEUSER}/,`whoami`.strip) cont.gsub!(/{CPEEWORKINGDIR}/,"#{File.realpath(p1)}") cont.gsub!(/{CPEESERVER}/,"#{File.realpath(p1)}/server") File.write("#{p1}/#{nam}",cont) - p f - p nam - p "#{p1}/#{nam}" end else puts 'Directory already exists.' end end