add lsws conversion to cli

This commit is contained in:
Usman Nasir
2022-06-17 12:21:06 +05:00
parent 12ccf2491f
commit 9c0f4927ae
3 changed files with 56 additions and 1 deletions

View File

@@ -1582,6 +1582,18 @@ def main():
wm = WebsiteManager()
wm.installJoomla(1, data)
elif args.function == "switchTOLSWS":
completeCommandExample = 'cyberpanel switchTOLSWS --licenseKey <Your lsws key here or you can enter TRIAL)'
if not args.licenseKey:
print("\n\nPlease enter LiteSpeed License key. For example:\n\n" + completeCommandExample + "\n\n")
return
from serverStatus.serverStatusUtil import ServerStatusUtil
ServerStatusUtil.switchTOLSWSCLI(args.licenseKey)
if __name__ == "__main__":
main()