Skip to content

Commit 95246a5

Browse files
authored
Merge pull request #24 from Roblox/ICO-4170-add-data-symlink
ICO-4170: Use Ctime instead of birthtime
2 parents c523bb9 + 2ac96e5 commit 95246a5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libraries/vault_service.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def action_enable
9090
# if /var/log/vault exists and is not a link, move to /var/log/vault.[created_at timestamp]
9191
path = '/var/log/vault'
9292
if ::File.directory?(path) && !::File.symlink?(path)
93-
created_at = ::File.birthtime(path).strftime('%Y%m%d%H%M%S')
93+
created_at = ::File.ctime(path).strftime('%Y%m%d%H%M%S')
9494
new_path = "#{path}.#{created_at}"
9595
::FileUtils.mv(path, new_path)
9696
end

metadata.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
long_description 'Application cookbook for installing and configuring Vault.'
77
issues_url 'https://github.com/johnbellone/vault-cookbook/issues'
88
source_url 'https://github.com/johnbellone/vault-cookbook/'
9-
version '1002.7.10'
9+
version '1002.7.11'
1010

1111
supports 'ubuntu', '>= 12.04'
1212
supports 'redhat', '>= 6.4'

0 commit comments

Comments
 (0)