Merge pull request #7 in KSC/webapp-tools from create-files-admin to master
* commit 'd761329e4069845450dda7fc5765f0d23665aafc': Rename inject files to files_admin
This commit is contained in:
commit
9869bdaa0d
@ -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
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
22
files_admin/README.md
Normal file
22
files_admin/README.md
Normal file
@ -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
|
@ -2,7 +2,6 @@
|
|||||||
import subprocess
|
import subprocess
|
||||||
from configobj import ConfigObj
|
from configobj import ConfigObj
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
from MAPI.Util import *
|
from MAPI.Util import *
|
||||||
import kopano
|
import kopano
|
||||||
# Try simplejson if json is not available
|
# Try simplejson if json is not available
|
||||||
@ -129,5 +128,4 @@ def main():
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
|||||||
[setting]
|
[setting]
|
||||||
|
|
||||||
name = Owncloud share
|
name = Owncloud share
|
||||||
type = Owncloud
|
type = Owncloud
|
||||||
workgroup =
|
workgroup =
|
Loading…
Reference in New Issue
Block a user