Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > 4142748a3e7a17ccc97c30fd01120aea > scriptlet

vagrant-2.0.4-1.mga7.noarch.rpm

PREIN

/bin/sh
getent group vagrant >/dev/null || groupadd -r vagrant

POSTIN

/usr/bin/ruby
begin
  $LOAD_PATH.unshift "/usr/share/vagrant/gems/gems/vagrant-2.0.4/lib"
  begin
    require "vagrant/plugin/manager"
  rescue LoadError => e
    raise
  end;

  unless File.exist?("/usr/share/vagrant/plugins.json")
    Vagrant::Plugin::StateFile.new(Pathname.new(File.expand_path "/var/lib/vagrant/plugins.json")).save!
    File.symlink "/var/lib/vagrant/plugins.json", "/usr/share/vagrant/plugins.json"
  end
rescue => e
  puts "Vagrant plugin.json is not properly initialized: #{e}"
end