From f7cd72859c105653beff8a1d8decc732acffccab Mon Sep 17 00:00:00 2001 From: rickzhang Date: Thu, 12 Sep 2024 16:17:38 -0700 Subject: [PATCH 1/2] change birthtime to ctime --- libraries/vault_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/vault_service.rb b/libraries/vault_service.rb index d2def46..ea862a8 100644 --- a/libraries/vault_service.rb +++ b/libraries/vault_service.rb @@ -90,7 +90,7 @@ def action_enable # if /var/log/vault exists and is not a link, move to /var/log/vault.[created_at timestamp] path = '/var/log/vault' if ::File.directory?(path) && !::File.symlink?(path) - created_at = ::File.birthtime(path).strftime('%Y%m%d%H%M%S') + created_at = ::File.ctime(path).strftime('%Y%m%d%H%M%S') new_path = "#{path}.#{created_at}" ::FileUtils.mv(path, new_path) end From 2ac96e59852f902ad47906707ae0ba1bb8b4036e Mon Sep 17 00:00:00 2001 From: rickzhang Date: Thu, 12 Sep 2024 16:20:59 -0700 Subject: [PATCH 2/2] bump metadata --- metadata.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadata.rb b/metadata.rb index a2945ad..2ee648b 100644 --- a/metadata.rb +++ b/metadata.rb @@ -6,7 +6,7 @@ long_description 'Application cookbook for installing and configuring Vault.' issues_url 'https://github.com/johnbellone/vault-cookbook/issues' source_url 'https://github.com/johnbellone/vault-cookbook/' -version '1002.7.10' +version '1002.7.11' supports 'ubuntu', '>= 12.04' supports 'redhat', '>= 6.4'