Skip to content

Commit

Permalink
Merge pull request #24 from Roblox/ICO-4170-add-data-symlink
Browse files Browse the repository at this point in the history
ICO-4170: Use Ctime instead of birthtime
  • Loading branch information
wsxdrorange authored Sep 12, 2024
2 parents c523bb9 + 2ac96e5 commit 95246a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libraries/vault_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 95246a5

Please sign in to comment.