Define Shared_Folders In Config.json


sruon

Recommended Posts

On Mac OS X 10.9.1, I am trying to define a shared folder in the config.json

{  "use_gui" : false,  "webui" :  {    "listen" : "127.0.0.1:8888",    "login" : "admin",    "password" : "mysuperpassword",    "api_key" : "mysuperapikey"  },  "shared_folders" :  [   {   "dir" : "/btsync",   "secret" : "mysecret"   }  ]}

However when I query the API to get the folders, the answer is empty

 

curl -u admin:mysuperpassword 'http://localhost:8888/api?method=get_folders'
[  ]

 

 

The objective is to deploy this application on my hundred of OSX clients to synchronize relatively large content easily when I need to. (Virtual machines etc).

Alternatively I could query the API directly on clients to register the share in a postflight script but I'd rather get it to work this way. Anything I'm missing?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.