• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support General Questions Run Scripts

     
    • 0 Vote(s) - 0 Average

    Run Scripts

    How can I run a script in /config/scripts
    ccbadd
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2024 Apr
    Reputation: 0
    Country:United States
    #1
    2024-04-16, 01:21 PM
    I have Jellifin 10.8.13 in docker running fine except for grabbing my guide data.  I have an HDHomerun and I subscribe to the dvr service so I can grab the xml guide data.  I created the script in the /config/scripts and it runs fine from a bash prompt and the data can be imported without issue.  I just can't seem to figure out how to setup the script to run periodically.  Should I add a cron job for it?
    bitmap
    Offline

    Community Moderator

    Posts: 766
    Threads: 9
    Joined: 2023 Jul
    Reputation: 24
    #2
    2024-04-16, 02:12 PM
    Jellyfin won't run it for you as far as I know, so you can either set up a cron job on the host or you can figure out how to pull cron into your Docker image. Depending on the release you use, I know LSIO has a universal add-in to install cron and gives you a brief explanation of how to use it. You essentially create static files in your config dir that hold your cron jobs and chown them to root, cron inside the container does the rest.
    Jellyfin 10.10.7 LSIO Docker | Ubuntu 24.04 LTS | i7-13700K | Arc A380 6 GB | 64 GB RAM | 79 TB Storage

    [Image: AIL4fc84QG6uSnTDEZiCCtosg7uAA8x9j1myFaFs...qL0Q=w2400]
    ccbadd
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2024 Apr
    Reputation: 0
    Country:United States
    #3
    2024-04-17, 07:23 PM
    I tried to install the addon and realized that I was using the official Jellyfin docker container so it did not work. I found the LSIO version and set it up, add the chron addon and it does work now. Thanks for the help.
    1
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode