protected void SetupConfigFromTemplate(string pathToConfig, string pathToTemplate) { if (LocalFileSystem.FileExists(pathToTemplate)) { if (!TargetFileSystem.FileExists(pathToConfig)) { Logger.Instance.Log(LogLevel.Info, "\tCreating config '{0}' from '{1}' template", TargetFileSystem.GetFullPath(pathToConfig), LocalFileSystem.GetFullPath(pathToTemplate)); LocalFileSystem.CopyFile(pathToTemplate, TargetFileSystem, pathToConfig, true); } EnvironmentHelper.ExpandEnvironmentVariablesInConfig(pathToConfig, TargetFileSystem); } }