summaryrefslogtreecommitdiff
path: root/habitat/hooks/init
blob: f615b11d85715962ca195f7ba25cc2307f497d38 (plain)
1
2
3
4
5
6
7
8
9
10
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 ~}}