Improvments to WordPress and Joomla installer!

This commit is contained in:
usmannasir
2018-02-05 01:22:37 +05:00
parent 6cbc6e5e01
commit 061af1eae5
4 changed files with 49 additions and 8 deletions

View File

@@ -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()