This commit is contained in:
Resham Panth 2025-12-02 10:14:40 +05:30 committed by GitHub
commit 8026e823a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 14 additions and 0 deletions

View File

@ -1049,6 +1049,20 @@ def main():
cyberpanel.deleteDNSRecord(args.recordID)
## Fix File Permission function
elif args.function == "fixFilePermissions":
completeCommandExample = 'cyberpanel fixFilePermissions --domainName cyberpanel.net'
if not args.domainName:
print("\n\nPlease enter the domain. For example:\n\n" + completeCommandExample + "\n\n")
return
from filemanager.filemanager import FileManager
fm = FileManager(None, None)
fm.fixPermissions(args.domainName)
## Backup Functions.
elif args.function == "createBackup":