mirror of
https://github.com/ansible/awx.git
synced 2026-03-11 14:39:30 -02:30
Fix an issue where we ignored the secret key during install
This commit is contained in:
@@ -6,7 +6,7 @@ import os
|
||||
def get_secret():
|
||||
if os.path.exists("/etc/tower/SECRET_KEY"):
|
||||
return file('/etc/tower/SECRET_KEY', 'rb').read().strip()
|
||||
return os.getenv("SECRET_KEY", "privateawx"),
|
||||
return os.getenv("SECRET_KEY", "privateawx")
|
||||
|
||||
|
||||
ADMINS = ()
|
||||
|
||||
@@ -40,7 +40,6 @@ RUN yum -y install epel-release && \
|
||||
|
||||
RUN mkdir -p /var/log/tower
|
||||
RUN mkdir -p /etc/tower
|
||||
RUN echo "awxsecret" > /etc/tower/SECRET_KEY
|
||||
COPY {{ awx_sdist_file }} /tmp/{{ awx_sdist_file }}
|
||||
RUN OFFICIAL=yes pip install /tmp/{{ awx_sdist_file }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user