Hi!
First of all - thank you very much for this great piece of software. I've been looking for something like this for quite a while but Ninan is a lot more than I was expecting and hoping to find...
My only problem so far is that I'd like the downloaded files to have different permissions - so group users have write access for example.
Since I'm kind of new to the linux world I just wondered if that's possible somehow - even if it might not be implented in the program itself.
bye&loveyou ;-)
t
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You should be able to it with a download hook.
In your ninanconfig.xml find this section:
<downloadscript>
<enabled>false</enabled>
<start/>
<end/>
<allfinished/>
</downloadscript>
change it to:
<downloadscript>
<enabled>true</enabled>
<start/>
<end>yourscript.sh</end>
<allfinished/>
</downloadscript>
And then in your script:
Add something like
#!/bin/bash
chmod 775 %DOWNLOAD_DIR%
That should to the trick.
But I can see we need some templates and better documentation. Had to do some looking myself. ;-)
regards
Anders
Ninan developer
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi!
First of all - thank you very much for this great piece of software. I've been looking for something like this for quite a while but Ninan is a lot more than I was expecting and hoping to find...
My only problem so far is that I'd like the downloaded files to have different permissions - so group users have write access for example.
Since I'm kind of new to the linux world I just wondered if that's possible somehow - even if it might not be implented in the program itself.
bye&loveyou ;-)
t
Thanks.
You should be able to it with a download hook.
In your ninanconfig.xml find this section:
<downloadscript>
<enabled>false</enabled>
<start/>
<end/>
<allfinished/>
</downloadscript>
change it to:
<downloadscript>
<enabled>true</enabled>
<start/>
<end>yourscript.sh</end>
<allfinished/>
</downloadscript>
And then in your script:
Add something like
#!/bin/bash
chmod 775 %DOWNLOAD_DIR%
That should to the trick.
But I can see we need some templates and better documentation. Had to do some looking myself. ;-)
regards
Anders
Ninan developer
iám also interesting
if i do
chmod 775 /download/ftp/ninan
it only changes the ninan dir not the subdir's and files ?
please help
You're missing the -R option.
This should work:
chmod -R 775 /download/ftp/ninan
regards
Anders
he super thanks will test it tomorrow
what about the nzb dir ?
only the nzb's start downloading from the user who strarts ninan ?
ninanchmod.sh
#!/bin/bash
chmod -R 775 /download/ftp/ninan
ninanconfig.xml
<enabled>true</enabled>
<start/>
<end>ninanchmod.sh</end>
<allfinished/>
</downloadscript>
but no suc6 ?? what's the problem ?
Is it possible that ninan pick's up nzb from other users ? and how