mirror of
https://github.com/ansible/awx.git
synced 2026-03-09 13:39:27 -02:30
Merge pull request #9482 from shanemcd/create_preload_data-on-dev-boot
Create admin user / run create_preload_data when dev env boots Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
@@ -15,6 +15,15 @@ make version_file
|
|||||||
make migrate
|
make migrate
|
||||||
make init
|
make init
|
||||||
|
|
||||||
|
|
||||||
|
if output=$(awx-manage createsuperuser --noinput --username=admin --email=admin@localhost 2> /dev/null); then
|
||||||
|
echo $output
|
||||||
|
admin_password=$(openssl rand -base64 12)
|
||||||
|
echo "Admin password: ${admin_password}"
|
||||||
|
awx-manage update_password --username=admin --password=${admin_password}
|
||||||
|
fi
|
||||||
|
awx-manage create_preload_data
|
||||||
|
|
||||||
mkdir -p /awx_devel/awx/public/static
|
mkdir -p /awx_devel/awx/public/static
|
||||||
mkdir -p /awx_devel/awx/ui/static
|
mkdir -p /awx_devel/awx/ui/static
|
||||||
mkdir -p /awx_devel/awx/ui_next/build/static
|
mkdir -p /awx_devel/awx/ui_next/build/static
|
||||||
|
|||||||
Reference in New Issue
Block a user