grtjn / mlvagrant

Scripts for bootstrapping a local MarkLogic cluster for development purposes using https://www.vagrantup.com/ and https://www.virtualbox.org/.
Apache License 2.0
19 stars 16 forks source link

ml install requires sudo #119

Closed Audarth closed 7 years ago

Audarth commented 7 years ago

I updated vagrant and ml vagrant today and tried starting up a MarkLogic 9 machine but found that the MarkLogic installation step was failing.

My solution was to go to the "install-ml-centos.sh" script and change these lines to use sudo:

  # Run MarkLogic installer
  echo "Installing ML using /space/software/$installer ..."
  sudo rpm -i "/space/software/$installer"

  # Make sure MarkLogic is started
  sudo /sbin/service MarkLogic restart

Maybe an issue with the new box, or because of my Windows machine.

grtjn commented 7 years ago

ML install indeed requires sudo, but the entire script should be running with sudo. See https://github.com/grtjn/mlvagrant/blob/master/opt/vagrant/bootstrap-centos-master.sh