diff options
Diffstat (limited to 'habitat/hooks/init')
-rw-r--r-- | habitat/hooks/init | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/habitat/hooks/init b/habitat/hooks/init new file mode 100644 index 0000000000..f615b11d85 --- /dev/null +++ b/habitat/hooks/init @@ -0,0 +1,11 @@ +#!/bin/sh + +exec 2>&1 +for path in {{cfg.cookbook_path}} {{cfg.data_bag_path}} {{cfg.environment_path}} {{cfg.file_backup_path}} {{cfg.file_cache_path}} {{cfg.node_path}} {{cfg.role_path}}; do + mkdir -p "{{pkg.svc_data_path}}/$path" +done + +{{#if cfg.use_member_id_as_uuid ~}} +mkdir -p "{{pkg.svc_config_path}}/local-mode-cache/cache/" +cp -v "{{pkg.svc_config_path}}/data_collector_metadata.json" "{{pkg.svc_config_path}}/local-mode-cache/cache/" +{{/if ~}} |