Only install docker if missing
This commit is contained in:
@@ -4,8 +4,7 @@ namespace :mrsk do
|
||||
namespace :server do
|
||||
desc "Setup Docker on the remote servers"
|
||||
task :bootstrap do
|
||||
# FIXME: Detect when apt-get is not available and use the appropriate alternative
|
||||
on(MRSK.config.hosts) { execute "apt-get install docker.io -y" }
|
||||
on(MRSK.config.hosts) { execute "which docker || apt-get install docker.io -y" }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user