chef/site-cookbooks/kosmos_gitea/recipes/backup.rb

13 lines
282 B
Ruby

#
# Cookbook:: kosmos_gitea
# Recipe:: backup
#
# The MIT License (MIT)
#
unless node.chef_environment == "development"
# backup the data dir and the config files
node.override["backup"]["archives"]["gitea"] = [node["gitea"]["working_directory"]]
include_recipe "backup"
end