fix(I7C5OG): add 'KRB5_CONFIG' to env file when 'gs_om -t kerberos -m install'

This commit is contained in:
jerad.k 2023-06-09 16:11:14 +08:00
parent ba06975b37
commit d4724d8150

View File

@ -357,6 +357,15 @@ class Kerberos():
if status != 0:
raise Exception(ErrorCode.GAUSS_514["GAUSS_51400"]
% cmd + "Error:\n%s." % output)
# SET KRB5_CONFIG
cmd = "echo \"export KRB5_CONFIG=%s/krb5.conf\"" \
" >> %s" % (os.path.dirname(g_opts.mpprcFile),
g_opts.mpprcFile)
(status, output) = subprocess.getstatusoutput(cmd)
if status != 0:
raise Exception(ErrorCode.GAUSS_514["GAUSS_51400"] %
cmd + "Error:\n%s." % output)
g_logger.log("Config environment variable KRB5RCACHETYPE "
"successfully.")
except Exception as e: