Use $QUAYPATH and $QUAYDIR in conf and init files
This commit is contained in:
parent
334a08d90b
commit
cdb3722c17
59 changed files with 341 additions and 225 deletions
|
@ -32,6 +32,7 @@ from util.useremails import send_confirmation_email, send_recovery_email
|
|||
from util.license import decode_license, LicenseDecodeError
|
||||
from util.security.ssl import load_certificate, CertInvalidException
|
||||
from util.config.validator import EXTRA_CA_DIRECTORY
|
||||
from _init import ROOT_DIR
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
@ -179,7 +180,7 @@ class ChangeLog(ApiResource):
|
|||
def get(self):
|
||||
""" Returns the change log for this installation. """
|
||||
if SuperUserPermission().can():
|
||||
with open('CHANGELOG.md', 'r') as f:
|
||||
with open(os.path.join(ROOT_DIR, 'CHANGELOG.md'), 'r') as f:
|
||||
return {
|
||||
'log': f.read()
|
||||
}
|
||||
|
|
Reference in a new issue