File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -47,5 +47,8 @@ def submitInstallDocker():
4747
4848 except BaseException as msg :
4949 logging .CyberCPLogFileWriter .statusWriter (ServerStatusUtil .lswsInstallStatusPath , str (msg ) + ' [404].' , 1 )
50+ def main ():
51+ DockerInstall .submitInstallDocker ()
5052
51- DockerInstall .submitInstallDocker ()
53+ if __name__ == "__main__" :
54+ main ()
Original file line number Diff line number Diff line change @@ -1196,14 +1196,15 @@ def main():
11961196 parser = argparse .ArgumentParser (description = 'CyberPanel' )
11971197 parser .add_argument ('function' , help = 'Specific a function to call!' )
11981198 parser .add_argument ('--version' , help = 'MySQL version to upgrade to.' )
1199+ parser .add_argument ('--tempStatusPath' , help = 'MySQL version to upgrade to.' )
11991200
12001201 args = parser .parse_args ()
12011202
12021203
12031204 if args .function == "enableRemoteMYSQL" :
12041205 mysqlUtilities .enableRemoteMYSQL ()
12051206 elif args .function == "UpgradeMariaDB" :
1206- mysqlUtilities .UpgradeMariaDB (args .version , '/home/cyberpanel/upgrade_mysql_logs' )
1207+ mysqlUtilities .UpgradeMariaDB (args .version , args . tempStatusPath )
12071208
12081209
12091210if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments