diff options
Diffstat (limited to 'lib/leap_cli/remote')
-rw-r--r-- | lib/leap_cli/remote/tasks.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/leap_cli/remote/tasks.rb b/lib/leap_cli/remote/tasks.rb index 048238d..b4d05d8 100644 --- a/lib/leap_cli/remote/tasks.rb +++ b/lib/leap_cli/remote/tasks.rb @@ -57,7 +57,7 @@ task :install_prerequisites, :max_hosts => MAX_HOSTS do run "( test -f /etc/init.d/ntp && /etc/init.d/ntp start ) || true" end leap.log :installing, "required packages" do - run %[#{apt_get} install #{leap.required_wheezy_packages}] + run %[#{apt_get} install $( (egrep -q '(^wheezy|^7\.)' /etc/debian_version && echo #{leap.required_wheezy_packages}) || echo #{leap.required_packages} )] end #run "locale-gen" leap.mkdirs("/etc/leap", "/srv/leap") @@ -72,4 +72,4 @@ task :skip_errors_task, :on_error => :continue, :max_hosts => MAX_HOSTS do end task :standard_task, :max_hosts => MAX_HOSTS do -end
\ No newline at end of file +end |