!941 6.0.0代码回合

Merge pull request !941 from 张悦萌/upgradectl-tmp
This commit is contained in:
opengauss_bot 2024-09-27 01:07:26 +00:00 committed by Gitee
commit 4c38f7c417
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -2313,8 +2313,7 @@ def cleanInstallPath():
if commit_id:
dss_app = os.path.realpath(
os.path.join(os.path.dirname(installPath), f'dss_app_{commit_id}'))
tmp_path = os.path.realpath(os.path.join(os.path.dirname(installPath), 'tmp'))
cmd = "(if [ -d '%s' ]; then mv '%s' %s; fi)" % (dss_app, dss_app, tmp_path)
cmd = "(if [ -d '%s' ]; then mv '%s' %s; fi)" % (dss_app, dss_app, tmpDir)
g_logger.debug("Command for cleaning install path: %s." % cmd)
CmdExecutor.execCommandLocally(cmd)