fixes in vm_caddy example

This commit is contained in:
2024-12-31 17:37:58 +02:00
parent b5fde070b3
commit 694def6336
6 changed files with 95 additions and 81 deletions

View File

@@ -138,8 +138,8 @@ pub fn (mut self Context) hero_config_set(cat string, name string, content_ stri
config_file.write(content)!
}
pub fn (mut self Context) hero_config_exists(cat string, name string) !bool {
path := '${self.path()!.path}/${cat}__${name}.yaml'
pub fn (mut self Context) hero_config_exists(cat string, name string) bool {
path := '${os.home_dir()}/hero/context/${self.config.name}/${cat}__${name}.yaml'
return os.exists(path)
}