#!/bin/sh

cd /healthchecks || exit 1

source /healthchecks/hc-venv/bin/activate

./manage.py createsuperuser

#!/bin/sh

cd /healthchecks || exit 1

su healthcheck -c 'source /healthchecks/hc-venv/bin/activate;/healthchecks/manage.py createsuperuser'

Use su to execute the command
Use su to execute the command
