mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-02-26 16:30:45 +01:00
convert to lsws ent via cli
This commit is contained in:
@@ -70,4 +70,9 @@ class cliParser:
|
||||
parser.add_argument('--siteTitle', help='Site Title for application installers.')
|
||||
parser.add_argument('--path', help='Path for application installers.')
|
||||
|
||||
### Convert to LSWS Ent via cli
|
||||
|
||||
parser.add_argument('--licenseKey', help='LiteSpeed Enterprise License key')
|
||||
|
||||
|
||||
return parser.parse_args()
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user