mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 06:16:08 +01:00
Improvments to WordPress and Joomla installer!
This commit is contained in:
@@ -2,9 +2,11 @@ import platform
|
||||
import os
|
||||
import datetime
|
||||
import math
|
||||
import argparse
|
||||
|
||||
class SystemInformation:
|
||||
now = datetime.datetime.now()
|
||||
olsReport = ""
|
||||
|
||||
@staticmethod
|
||||
def cpuLoad():
|
||||
@@ -95,4 +97,24 @@ class SystemInformation:
|
||||
'cpuUsage': 0,
|
||||
'diskUsage': 0}
|
||||
|
||||
return SystemInfo
|
||||
return SystemInfo
|
||||
|
||||
@staticmethod
|
||||
def populateOLSReport():
|
||||
SystemInformation.olsReport = open("/tmp/lshttpd/.rtreport", "r").readlines()
|
||||
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
parser = argparse.ArgumentParser(description='CyberPanel Installer')
|
||||
parser.add_argument('function', help='Specific a function to call!')
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
if args.function == "populateOLSReport":
|
||||
SystemInformation.populateOLSReport()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user