fix add_applications
This commit is contained in:
parent
6abe8e67d4
commit
fa854f6490
6
abra.sh
6
abra.sh
@ -159,11 +159,13 @@ print(f'{blueprint.name} enabled: {blueprint.enabled}')
|
||||
}
|
||||
|
||||
add_applications(){
|
||||
export APPLICATIONS
|
||||
/manage.py shell -c """
|
||||
import json
|
||||
if '$APPLICATIONS' == '':
|
||||
import os
|
||||
if os.environ['APPLICATIONS'] == '':
|
||||
exit()
|
||||
applications = json.loads('$APPLICATIONS')
|
||||
applications = json.loads(os.environ['APPLICATIONS'])
|
||||
for name, url in applications.items():
|
||||
print(f'Add {name}: {url}')
|
||||
app = Application.objects.filter(name=name).first()
|
||||
|
Loading…
x
Reference in New Issue
Block a user