On branch upgrade-tmpDir

Your branch is up to date with 'origin/upgrade-tmpDir'.
 Changes to be committed:
	modified:   script/local/UpgradeUtility.py
This commit is contained in:
z00848344 2024-09-26 18:50:11 +08:00
parent 522a544b91
commit 700b2357c8

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)