#!/bin/bash # Create dir if not existed in HF persistent storage if [ ! -d "${GSK_HOME}" ] then # Create HOME mkdir -p "${GSK_HOME}" # Create frontend run dir mkdir -p "${GSK_HOME}/run/nginx" fi if [ -f "$PGDATA/postmaster.pid" ] then # Clean up remaining postgres pid file rm "${PGDATA}/postmaster.pid" fi if [ ! -z "${GSK_LICENSE}" ] then # Use new license if env set echo "${GSK_LICENSE}" > "${GSK_HOME}/license.lic" # TODO: Backend raises exception if license is not parsable fi supervisord -c /opt/giskard/supervisord.conf