Yes, I agree that we definitely need to improve on this.

At this point of the script https://github.com/gem/oq-platform/blob/master/oq-ui-api/bin/oq-platform-install.sh#L758 you have the environment activated (so geonode should be in the PYTHONPATH and the DJANGO_SETTINGS_MODULE should be set properly).