This commit is contained in:
usmannasir
2024-01-10 10:44:29 +05:00
parent 894c9535f6
commit 2585730bbd
2 changed files with 213 additions and 179 deletions

View File

@@ -124,6 +124,14 @@ class Upgrade:
WriteToFile.close()
if do_exit:
### remove log file path incase its there
if Upgrade.SoftUpgrade:
time.sleep(10)
if os.path.exists(Upgrade.LogPathNew):
os.remove(Upgrade.LogPathNew)
if Upgrade.FromCloud == 0:
os._exit(0)
@@ -3087,6 +3095,14 @@ vmail
Upgrade.stdOut("Upgrade Completed.")
### remove log file path incase its there
if Upgrade.SoftUpgrade:
time.sleep(10)
if os.path.exists(Upgrade.LogPathNew):
os.remove(Upgrade.LogPathNew)
def main():
parser = argparse.ArgumentParser(description='CyberPanel Installer')
parser.add_argument('branch', help='Install from branch name.')