diff --git a/cli/cyberPanel.py b/cli/cyberPanel.py index 0e3c51f8b..495760ff1 100755 --- a/cli/cyberPanel.py +++ b/cli/cyberPanel.py @@ -1043,6 +1043,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":