Skip to content
Snippets Groups Projects
Commit 2a6fd92d authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

[BUGFIX] Fix foodcritic

parent b53955c5
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,8 @@ description 'Site'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '1.0.0'
recipe 'typo3_site::default', 'Main recipe'
issues_url 'https://gitlab.sgalinski.de/chef-cookbooks/typo3_site/issues'
source_url 'https://gitlab.sgalinski.de/chef-cookbooks/typo3_site'
depends 'apache2', '~> 3.1.0'
depends 'database', '~> 4.0.0'
......
......@@ -230,13 +230,12 @@ end
#########################
node['typo3_site']['sync_directories'].each do |sync_data|
if sync_data['hostname']
ssh_known_hosts_entry sync_data['hostname'] do
port sync_data['port']
end
ssh_known_hosts_entry "Add host to known hosts: #{sync_data['hostname']}" do
port sync_data['port']
only_if { sync_data['hostname'] }
end
bash 'Synchronize ' + sync_data['local'] do
bash "Synchronize #{sync_data['local']}" do
user 'vagrant'
group data_bag['groupId']
timeout 3000000
......@@ -249,7 +248,7 @@ node['typo3_site']['sync_directories'].each do |sync_data|
rsync --delete -auvz --progress -e "ssh -p #{sync_data['port']} -o StrictHostKeyChecking=no" \
--no-o --no-g #{sync_data['user']}@#{sync_data['hostname']}:#{sync_data['remote']} \
"#{node['typo3_site']['webroot']}/#{node['typo3_site']['hostname']}/#{sync_data['local']}";
EOF
EOF
else
code <<-EOF
rsync --delete -auvz --progress --no-o --no-g #{sync_data['remote']} \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment