From d761329e4069845450dda7fc5765f0d23665aafc Mon Sep 17 00:00:00 2001 From: Martyn Alberts Date: Wed, 13 Feb 2019 17:09:13 +0100 Subject: [PATCH] Rename inject files to files_admin --- Inject Files/readme.md | 26 ------------------- files_admin/README.md | 22 ++++++++++++++++ {Inject Files => files_admin}/deencode.php | 0 .../files_admin.py | 4 +-- {Inject Files => files_admin}/owncloud.cfg | 1 - {Inject Files => files_admin}/smb.cfg | 0 6 files changed, 23 insertions(+), 30 deletions(-) delete mode 100644 Inject Files/readme.md create mode 100644 files_admin/README.md rename {Inject Files => files_admin}/deencode.php (100%) rename Inject Files/inject-files.py => files_admin/files_admin.py (99%) rename {Inject Files => files_admin}/owncloud.cfg (99%) rename {Inject Files => files_admin}/smb.cfg (100%) diff --git a/Inject Files/readme.md b/Inject Files/readme.md deleted file mode 100644 index 93c1b17..0000000 --- a/Inject Files/readme.md +++ /dev/null @@ -1,26 +0,0 @@ -Inject-files.py -=============== - -Script to inject the files setting into the users profile. - - -Files backend supported -======================= - -* SMB -* Owncloud -* Webddav - - -Examples -======== - - python inject-files -user test --file owncloud.cfg,smb.cfg - -Use the username and password provided in the configfile - - python inject-files -user test --file owncloud.cfg,smb.cfg --default - - - - diff --git a/files_admin/README.md b/files_admin/README.md new file mode 100644 index 0000000..f18bbfe --- /dev/null +++ b/files_admin/README.md @@ -0,0 +1,22 @@ +# Files Admin + +Files admin is a command-line interface to modify, inject and export kopano-files settings. + +# Files backend supported + +* SMB +* Owncloud +* Webddav + +# Example Usage + +Inject settings from owncloud and smb config file +> python files_admin -user John --file owncloud.cfg,smb.cfg + +Use the username and password provided in the config file +> python files_admin -user John --file owncloud.cfg,smb.cfg --default + +# Dependencies + +- python-kopano +- python-mapi \ No newline at end of file diff --git a/Inject Files/deencode.php b/files_admin/deencode.php similarity index 100% rename from Inject Files/deencode.php rename to files_admin/deencode.php diff --git a/Inject Files/inject-files.py b/files_admin/files_admin.py similarity index 99% rename from Inject Files/inject-files.py rename to files_admin/files_admin.py index ecdac86..eba4d4c 100644 --- a/Inject Files/inject-files.py +++ b/files_admin/files_admin.py @@ -2,7 +2,6 @@ import subprocess from configobj import ConfigObj import uuid - from MAPI.Util import * import kopano # Try simplejson if json is not available @@ -129,5 +128,4 @@ def main(): if __name__ == '__main__': main() - - + \ No newline at end of file diff --git a/Inject Files/owncloud.cfg b/files_admin/owncloud.cfg similarity index 99% rename from Inject Files/owncloud.cfg rename to files_admin/owncloud.cfg index 7aa4bcd..d866cd7 100644 --- a/Inject Files/owncloud.cfg +++ b/files_admin/owncloud.cfg @@ -1,5 +1,4 @@ [setting] - name = Owncloud share type = Owncloud workgroup = diff --git a/Inject Files/smb.cfg b/files_admin/smb.cfg similarity index 100% rename from Inject Files/smb.cfg rename to files_admin/smb.cfg