mirror of
https://github.com/ansible/awx.git
synced 2026-01-10 15:32:07 -03:30
Set SDB_NOTIFY_HOST for all processes
This commit is contained in:
parent
f1df4c54f8
commit
81f6d36a3a
@ -177,15 +177,6 @@ CELERYBEAT_SCHEDULE.update({ # noqa
|
||||
|
||||
CLUSTER_HOST_ID = socket.gethostname()
|
||||
|
||||
|
||||
if 'Docker Desktop' in os.getenv('OS', ''):
|
||||
os.environ['SDB_NOTIFY_HOST'] = 'docker.for.mac.host.internal'
|
||||
else:
|
||||
try:
|
||||
os.environ['SDB_NOTIFY_HOST'] = os.popen('ip route').read().split(' ')[2]
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
AWX_CALLBACK_PROFILE = True
|
||||
|
||||
if 'sqlite3' not in DATABASES['default']['ENGINE']: # noqa
|
||||
|
||||
@ -21,4 +21,10 @@ fi
|
||||
# writing out the sub*id files above
|
||||
podman system migrate
|
||||
|
||||
if [[ "$OS" == *"Docker Desktop"* ]]; then
|
||||
export SDB_NOTIFY_HOST='docker.for.mac.host.internal'
|
||||
else
|
||||
export SDB_NOTIFY_HOST=$(ip route | head -n1 | awk '{print $3}')
|
||||
fi
|
||||
|
||||
exec $@
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user