mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 01:28:09 -03:30
Move placeholder index_awx.html out of build dir
- move placeholder index_awx.html out of ui_next build dir - copy index_awx.html to build dir during development bootstrap if UI_NEXT has not been build
This commit is contained in:
@@ -25,7 +25,12 @@ fi
|
||||
|
||||
# Make sure that the UI static file directory exists, Django complains otherwise.
|
||||
mkdir -p /awx_devel/awx/ui/build/static
|
||||
mkdir -p /awx_devel/awx/ui_next/build/awx
|
||||
|
||||
# Make sure that the UI_NEXT statifc file directory exists, if UI_NEXT is not built yet put a placeholder file in it.
|
||||
if [ ! -d "/awx_devel/awx/ui_next/build/awx" ]; then
|
||||
mkdir -p /awx_devel/awx/ui_next/build/awx
|
||||
cp /awx_devel/awx/ui_next/placeholder_index_awx.html /awx_devel/awx/ui_next/build/awx/index_awx.html
|
||||
fi
|
||||
|
||||
if output=$(awx-manage createsuperuser --noinput --username=admin --email=admin@localhost 2> /dev/null); then
|
||||
echo $output
|
||||
|
||||
Reference in New Issue
Block a user