Merge pull request #3162 from quay/fix-config-app-certs-install
Override config directory in certs install script in config app
This commit is contained in:
commit
45853deef1
3 changed files with 3 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
|||
set -e
|
||||
QUAYPATH=${QUAYPATH:-"."}
|
||||
QUAYCONF=${QUAYCONF:-"$QUAYPATH/conf/stack"}
|
||||
QUAYCONFIG="$QUAYCONF/stack"
|
||||
QUAYCONFIG=${QUAYCONFIG:-"$QUAYCONF/stack"}
|
||||
|
||||
cd ${QUAYDIR:-"/quay-registry"}
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ class SuperUserCustomCertificate(ApiResource):
|
|||
|
||||
# Call the update script with config dir location to install the certificate immediately.
|
||||
if subprocess.call([os.path.join(INIT_SCRIPTS_LOCATION, 'certs_install.sh')],
|
||||
env={ 'QUAYCONF': config_provider.get_config_dir_path() }) != 0:
|
||||
env={ 'QUAYCONFIG': config_provider.get_config_dir_path() }) != 0:
|
||||
raise Exception('Could not install certificates')
|
||||
|
||||
return '', 204
|
||||
|
|
|
@ -22,7 +22,7 @@ class LDAPValidator(BaseValidator):
|
|||
# If there is a custom LDAP certificate, then reinstall the certificates for the container.
|
||||
if config_provider.volume_file_exists(LDAP_CERT_FILENAME):
|
||||
subprocess.check_call([os.path.join(init_scripts_location, 'certs_install.sh')],
|
||||
env={ 'QUAYCONF': config_provider.get_config_dir_path() })
|
||||
env={ 'QUAYCONFIG': config_provider.get_config_dir_path() })
|
||||
|
||||
# Note: raises ldap.INVALID_CREDENTIALS on failure
|
||||
admin_dn = config.get('LDAP_ADMIN_DN')
|
||||
|
|
Reference in a new issue