This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env php | |
| <?php | |
| // Do some echoing, why? why not.. | |
| echo "Starting the Radarr_cleanup.php postprocessing script\n"; | |
| // for some reason, environment variables from the cli is hiding in $_SERVER, don't ask me, php is silly sometimes | |
| $envVars = $_SERVER; | |
| // All the env variables attached to variables |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env php | |
| <?php | |
| // Do some echoing, why? why not.. | |
| echo "Starting the Sonarr_cleanup.php postprocessing script\n"; | |
| // for some reason, environment variables from the cli is hiding in $_SERVER, don't ask me, php is silly sometimes | |
| $envVars = $_SERVER; | |
| // All the env variables attached to variables |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # keywords which the torrent path must contain to run the script | |
| DIR_CONTAINS=( ) | |
| DIR_CONTAINS+=( "TV" ) | |
| DIR_CONTAINS+=( "Movies" ) | |
| echo "Checking $TR_TORRENT_DIR/$TR_TORRENT_NAME" >> /var/log/posttorrent.log | |
| # loop through each keyword |