mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-08-31 03:08:06 +02:00
trying to fix https://github.com/usmannasir/cyberpanel/pull/1139
This commit is contained in:
@@ -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.')
|
||||
|
||||
Reference in New Issue
Block a user