]> git.mxchange.org Git - payara-vagrant.git/commitdiff
changed service to start with vagrant user to avoid creating OSGI cache as root
authorMike Croft <backtotheoldhouse@gmail.com>
Wed, 29 Jul 2015 12:49:38 +0000 (13:49 +0100)
committerMike Croft <backtotheoldhouse@gmail.com>
Wed, 29 Jul 2015 12:49:38 +0000 (13:49 +0100)
Vagrantfile
provision.sh

index f156989ab7251f5d6d52739b6d5b0fcb38ce82b5..2864b87a77459238a82a0bcebd05531846c6a719 100644 (file)
@@ -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
index 1620670f609325985b6fea81f3fac0cbfa34f6dd..1b540f31a117748fa3e35ea827b67a5819bb0a0d 100644 (file)
@@ -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