Skip to content

Commit

Permalink
bug fix: cloudlinux script
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Feb 13, 2024
1 parent e9a4cb2 commit 44758dd
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions CLScript/CloudLinuxDomains.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@

class CloudLinuxDomains(CLMain):

def __init__(self, name, owner):
def __init__(self, name, owner, with_php):
CLMain.__init__(self)
self.owner = owner
self.name = name
self.with_php = with_php

def listAll(self):
data = {}
Expand All @@ -47,16 +48,20 @@ def listAll(self):
print(json.dumps(final))


import argparse

if __name__ == '__main__':
parser = argparse.ArgumentParser(description='CyberPanel CloudLinux Manager')
parser.add_argument('-o', '--owner', help='Owner')
parser.add_argument('-n', '--name', help='Owner')
parser.add_argument('-p', '--with-php', help='False (X-Ray support only)')
parser.add_argument('-p', '--with-php', action='store_true', help='False (X-Ray support only)')

args = parser.parse_args()

pi = CloudLinuxDomains(args.name, args.owner)
# Assuming CloudLinuxDomains class exists
pi = CloudLinuxDomains(args.name, args.owner, args.with_php)
try:
pi.listAll()
except:
pi.listAll()

0 comments on commit 44758dd

Please sign in to comment.