Hi Federico, yep, thanks. Since openwisp_config run as root and "etc" is 
owned by root as well as "tmp" what is the problem with writing to "etc" 
(in fact it's already creating the empty file)? The only difference I see 
between etc and tmp is that the later has writing permissions to non-root 
users. 

Regards!

Em terça-feira, 18 de abril de 2017 16:51:54 UTC-3, Federico Capoano 
escreveu:
>
> Hey Henrique,
>
> if you use a different path, eg: /tmp/test, do you get a different result?
>
> F.
>
> On Tue, Apr 18, 2017 at 6:30 PM henriqsc <[email protected] 
> <javascript:>> wrote:
>
>> Not sure why this is happening but when I try to include a file template 
>> to my configuration I get the file but with no content on the other end. 
>> Template's JASON is as follows:
>> {
>>     "files": [
>>         {
>>             "contents": "teste",
>>             "path": "/etc/config/teste",
>>             "mode": "0644"
>>         }
>>     ]
>> }
>>
>> When I download the configuration from Openwisp2 UI the file is there 
>> with the content but in the device I only get an empty one, logread doesn't 
>> tell me anything about. Am I missing something?
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "OpenWISP" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to