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
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