Hi there. New to maintaining an Open OnDemand instance (we’ve currently got 3).
The person who did our initial install did something similar to what the poster here did. modifying files in /var/www/ood/apps to make customizations:
…which bit me on upgrade is it did the poster in the other thread. I’ve since seen that what should have been done is for /etc/ood/config/apps to be where customizations should be made. To that end, I’ve added a “submit: submit/submit.yml.erb” to the various /etc/ood/config/apps/bc_desktop/*.yml. That works fine. Where I’m running into trouble is then also attempting to customize/replace the operations in /var/www/ood/apps/sys/bc_desktop/template/script.sh.erb using files in /etc. My most recent attempt looked like this:
--- batch_connect: template: basic script_file: ./script.sh.erb
…which I’ve also tried using an absolute PATH to /etc/ood/config/apps/bc_desktop/submit or a couple of other permutations. I also initially tried “template: vnc” – which is what I really want – but looking at the documentation for the template files made it look possible that script_file wasn’t supported by the vnc template. In any case, the end result is that the “output” directory for the session in my home directory has script.sh.erb.original and script.sh, but no sign of my customizations. What does work is modifying /var/www/ood/apps/sys/bc_desktop_oarc/template/script.sh.erb, so I’m looking for whatever the equivalent would be.
- Help me with an example of how to have both a custom submit.yml.erb and a custom script.sh.erb?
- Point me what log files to look in for a failure at this step?
Currently what happens is that it starts to spawn a job and the job disappears, likely since the custom script.sh.erb Is not being run, which is required to start NoVNC in our environment.
Thanks in advance for any tips.