From bdf27a63b233d6a474cc94dc0190b40a14f0fcfb Mon Sep 17 00:00:00 2001 From: Mike Croft Date: Wed, 29 Jul 2015 13:49:38 +0100 Subject: [PATCH] changed service to start with vagrant user to avoid creating OSGI cache as root --- Vagrantfile | 4 ++-- provision.sh | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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 -- 2.39.5