Hi Federico. yes, it shows up in the preview. I couldn't find why the problem is happening but I managed to figure out a workaround. Since only the final characters are removed I added the same amount of characters (white spaces) at the end of the file.
Let me know if you really want to go deep into it so I can send you a file so you can try to replicate but for now the workaround is ok. Em sábado, 17 de novembro de 2018 17:32:31 UTC-2, Federico Capoano escreveu: > > Hey Henrique, > > I'm trying to replicate this issue but I can't. > > does that show up in the preview? If not, what other steps can be done to > reproduce it? > > Thanks > Federico > > > On Friday, November 16, 2018 at 5:49:06 PM UTC+1, henriqsc wrote: >> >> Hi, I'm trying to transfer a shell script to my devices but the file >> generated by openwisp is incomplete. It's the first time it happens to me. >> >> The json in the advanced mode is ok and the output from the command line >> ( netjsonconfig --config file.json --backend openwrt --method render) >> returns the complete content of the file. When I download the file from the >> interface the content of this file is incomplete. I don't see anything >> special in the structure of the file such as weird characters. >> >> The part of the script that is trucated is the last line of the script: >> >> envia_saida_bandwidthd $PREFIXO_ARQ >> >> which is converted to: >> >> envia_saida_bandwidthd $PREF >> >> I tried modified versions of the script, recreated the script template >> several times and it has been generating an incomplete files. >> >> >> >> >> -- 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.
