mirror of
https://github.com/Radarr/Radarr
synced 2025-01-03 05:44:50 +00:00
Improve linux/unix scripts guidelines with shebang and chmod with references.
parent
1904cc41fa
commit
4d75d31757
1 changed files with 4 additions and 0 deletions
|
@ -49,6 +49,10 @@ Radarr can execute a custom script when new movies are imported or renamed, depe
|
||||||
| Movie_TvdbId | TVDB ID for the movie |
|
| Movie_TvdbId | TVDB ID for the movie |
|
||||||
|
|
||||||
### Specific usage tips ###
|
### Specific usage tips ###
|
||||||
|
#### LINUX / UNIX Scripts ####
|
||||||
|
|
||||||
|
Remember to always add a [shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)) and make your scripts executable with [chmod](https://en.wikipedia.org/wiki/Chmod).
|
||||||
|
|
||||||
#### PHP ####
|
#### PHP ####
|
||||||
The information from Radarr will not be added to $_ENV as one might expect but should be included in the [$_SERVER variable](https://secure.php.net/manual/en/reserved.variables.server.php). A sample script to use this information to convert a file can be found [here](https://gist.github.com/karbowiak/7fb38d346e368edc9d1a).
|
The information from Radarr will not be added to $_ENV as one might expect but should be included in the [$_SERVER variable](https://secure.php.net/manual/en/reserved.variables.server.php). A sample script to use this information to convert a file can be found [here](https://gist.github.com/karbowiak/7fb38d346e368edc9d1a).
|
||||||
#### PowerShell ####
|
#### PowerShell ####
|
||||||
|
|
Loading…
Reference in a new issue