FileBot license¶
FileBot renames finished downloads and moves them into the Plex library. The automated pipeline needs a paid FileBot license, because the trial does not work for automation. You put the license file on the dev Mac, prep-airdrop.sh copies it into the setup package, and app-setup/filebot-setup.sh activates it for the operator account on the server.
Before you start¶
- Buy a FileBot license at filebot.net. FileBot gives you the license as a file. The setup script looks for license files that end in
.psm. - Save the license file on the dev Mac, outside the repo checkout. Do not commit it.
-
In
config/config.confon the dev Mac, setFILEBOT_LICENSE_FILEto the absolute path of that file:The path is on the dev Mac, the machine where you run
prep-airdrop.sh. See Configuration keys.
Set it up¶
-
On the dev Mac, as your own user, build the package from the repo folder:
When
FILEBOT_LICENSE_FILEis set and the file exists,prep-airdrop.shcopies it toapp-setup/config/<file name>in the package, sets its mode to 600, and adds it to the package manifest as an optional file. The output showsFileBot license file copied to app-setup/config/<file name>. When the file does not exist, the script warns and goes on without it. -
Copy the package to the server and run first boot, as in Get started. First boot puts the package's
app-setupfolder at~/app-setupforadmin. -
On the server, as
admin, run the FileBot script:The script finds the license file in this order:
- The path given with
--license-file PATH, if you runfilebot-setup.shdirectly with that option. - The
FILEBOT_LICENSE_FILEpath. On the server, the dev Mac path usually does not exist. - A file with the same name in
~/app-setup/config/. This is where the package puts it. - When
FILEBOT_LICENSE_FILEis empty, the first*.psmfile in~/app-setup/config/.
Then the script does these things:
- It creates
/Users/operator/.config/filebot/and copies the license file there, owned byoperator. - It runs
filebot --license <file>asoperatorto activate the license.
- The path given with
-
Enter the
adminpassword when the script asks for it. Eachsudostep shows a[FileBot setup]prompt.
To activate a license on a server that is already set up, copy the license file to the server and run the script with the path:
Note
When the script finds no license file, it warns No FileBot license file found - FileBot will run in evaluation mode and goes on. The download pipeline then fails at the FileBot step. transmission-done.sh logs a LICENSE: FileBot license issue detected line when FileBot output mentions a license, trial or activation problem.
Check¶
- The setup output shows
FileBot license applied successfully, and the summary saysLicensed version - full functionality available. -
The license file is in the operator's FileBot folder:
-
FileBot reports the license for
operator. FileBot's built-insysinfoscript prints aLicenseline: -
After a download finishes, the processing log has no
LICENSEline:No output means that no license problem was logged.
Related¶
- Transmission and FileBot: the processing pipeline that uses FileBot.
- Build the package
- Configuration keys
- Logs
- Scripts