I altered the script like this:
--- getop_orig.sh 2019-11-26 22:17:49.629125071 +0000
+++ getop.sh 2019-11-26 07:10:40.197515501 +0000
@@ -415,10 +415,10 @@
nant generateSolution || exit -1
nant install.net || exit -1
- nant install.js || exit -1
chown -R $OPENPETRA_USER:$OPENPETRA_USER $OPENPETRA_HOME
+ su $OPENPETRA_USER -c "cd $SRC_PATH && nant install.js"
su $OPENPETRA_USER -c "cd js-client && CI=1 npm install cypress --quiet"
# download and restore demo database
Now it gets further (Running with set -x...)
+ demodbfile=/home/op_dev/demoWith1ledger.yml.gz
+ curl --silent --location https://github.com/openpetra/demo-databases/raw/master/demoWith1ledger.yml.gz
+ OP_CUSTOMER=op_dev
+ /home/op_dev/openpetra-server.sh loadYmlGz /home/op_dev/demoWith1ledger.yml.gz
07:16:46 backup has been restored from /home/op_dev/demoWith1ledger.yml.gz
07:16:46 SHUTDOWN PROCEDURE INITIATED
07:16:46 SHUTDOWN: Executing step 1 of 2...
07:16:46 SHUTDOWN: Executing step 2 of 2...
Please press Enter to continue...
07:16:47 SHUTDOWN PROCEDURE FINISHED
Then it hangs. Pressing enter does nothing. I am not sure whether it has finished the import or not. The database has data in, so presumably it does. The webserver is running, but I am getting permission denied errors in the logs.
I disabled SELinux, and now get the login page for openpetra and also phpmyadmin.
I will have a look around!