# Cookbook Name:: docker-grid
# Recipe:: compose
#
-# Copyright 2016-2017, whitestar
+# Copyright 2016-2018, whitestar
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
not_if "#{docker_compose_path} -v | grep #{excepted_ver},"
not_if { ::File.exist?(docker_compose_path) } unless node['docker-grid']['compose']['auto_upgrade']
end
+
+ # for sudo secure_path on RHEL family OS
+ link '/usr/sbin/docker-compose' do
+ to docker_compose_path
+ only_if { node['platform_family'] == 'rhel' }
+ end
when 'os-repository'
package 'docker-compose' do
action :install