From: Mike Croft Date: Wed, 29 Jul 2015 12:49:38 +0000 (+0100) Subject: changed service to start with vagrant user to avoid creating OSGI cache as root X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bdf27a63b233d6a474cc94dc0190b40a14f0fcfb;p=payara-vagrant.git changed service to start with vagrant user to avoid creating OSGI cache as root --- diff --git a/Vagrantfile b/Vagrantfile index f156989..2864b87 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -9,7 +9,7 @@ Vagrant.configure(2) do |config| end config.vm.provision "shell", path: "provision.sh" - config.vm.network :forwarded_port, guest: 4848, host: 4848 - config.vm.network :forwarded_port, guest: 8080, host: 8080 + config.vm.network :forwarded_port, guest: 4848, host: 4849 + config.vm.network :forwarded_port, guest: 8080, host: 8081 end diff --git a/provision.sh b/provision.sh index 1620670..1b540f3 100644 --- a/provision.sh +++ b/provision.sh @@ -73,12 +73,12 @@ echo "starting Payara..." case "$PAYARA_VERSION" in 4.1.151) - service payara start domain1 + su - vagrant -c 'service payara start domain1' ;; 4.1.152) - service payara start payaradomain + su - vagrant -c 'service payara start payaradomain' ;; /*) echo "Unknown Payara version, attempting to start domain1..." - service payara start domain1 + su - vagrant -c 'service payara start domain1' esac