That experiment failed. However, there appears to be another solution. A modification to
nginx_stage/templates/pun.conf.erb to show a warning page if the home directory was not found. Along with this diabeling the check for the existence of the home directory in
The result is this workflow. When launching OnDemand with an account that does not have a home directory created, you would see this page:
Access OnDemand with a user that has no home directory:
Click Open Shell to create home directory which opens the shell app:
Click Restart Web Server:
Since this is not a dynamic page like the “init app page”, we could look into generating a copy of this on the fly and storing it with the pun config, which could provide sites more control over customization.
I will share the code modifications required in a separate comment (or update this one).