[
  {
    "path": ".dockerignore",
    "content": ".git\n.gitignore\n.github\n.gitattributes\nREADMETEMPLATE.md\nREADME.md\n"
  },
  {
    "path": ".editorconfig",
    "content": "# This file is globally distributed to all container image projects from\n# https://github.com/linuxserver/docker-jenkins-builder/blob/master/.editorconfig\n\n# top-most EditorConfig file\nroot = true\n\n# Unix-style newlines with a newline ending every file\n[*]\nend_of_line = lf\ninsert_final_newline = true\n# trim_trailing_whitespace may cause unintended issues and should not be globally set true\ntrim_trailing_whitespace = false\n\n[{Dockerfile*,**.yml}]\nindent_style = space\nindent_size = 2\n\n[{**.sh,root/etc/s6-overlay/s6-rc.d/**,root/etc/cont-init.d/**,root/etc/services.d/**}]\nindent_style = space\nindent_size = 4\n"
  },
  {
    "path": ".gitattributes",
    "content": "# Auto detect text files and perform LF normalization\n* text=auto\n\n# Custom for Visual Studio\n*.cs     diff=csharp\n\n# Standard to msysgit\n*.doc\t diff=astextplain\n*.DOC\t diff=astextplain\n*.docx diff=astextplain\n*.DOCX diff=astextplain\n*.dot  diff=astextplain\n*.DOT  diff=astextplain\n*.pdf  diff=astextplain\n*.PDF\t diff=astextplain\n*.rtf\t diff=astextplain\n*.RTF\t diff=astextplain\n"
  },
  {
    "path": ".github/CONTRIBUTING.md",
    "content": "# Contributing to ombi\n\n## Gotchas\n\n* While contributing make sure to make all your changes before creating a Pull Request, as our pipeline builds each commit after the PR is open.\n* Read, and fill the Pull Request template\n  * If this is a fix for a typo (in code, documentation, or the README) please file an issue and let us sort it out. We do not need a PR\n  * If the PR is addressing an existing issue include, closes #\\<issue number>, in the body of the PR commit message\n* If you want to discuss changes, you can also bring it up in [#dev-talk](https://discordapp.com/channels/354974912613449730/757585807061155840) in our [Discord server](https://linuxserver.io/discord)\n\n## Common files\n\n| File | Use case |\n| :----: | --- |\n| `Dockerfile` | Dockerfile used to build amd64 images |\n| `Dockerfile.aarch64` | Dockerfile used to build 64bit ARM architectures |\n| `Dockerfile.armhf` | Dockerfile used to build 32bit ARM architectures |\n| `Jenkinsfile` | This file is a product of our builder and should not be edited directly. This is used to build the image |\n| `jenkins-vars.yml` | This file is used to generate the `Jenkinsfile` mentioned above, it only affects the build-process |\n| `package_versions.txt` | This file is generated as a part of the build-process and should not be edited directly. It lists all the installed packages and their versions |\n| `README.md` | This file is a product of our builder and should not be edited directly. This displays the readme for the repository and image registries |\n| `readme-vars.yml` | This file is used to generate the `README.md` |\n\n## Readme\n\nIf you would like to change our readme, please __**do not**__ directly edit the readme, as it is auto-generated on each commit.\nInstead edit the [readme-vars.yml](https://github.com/linuxserver/docker-ombi/edit/master/readme-vars.yml).\n\nThese variables are used in a template for our [Jenkins Builder](https://github.com/linuxserver/docker-jenkins-builder) as part of an ansible play.\nMost of these variables are also carried over to [docs.linuxserver.io](https://docs.linuxserver.io/images/docker-ombi)\n\n### Fixing typos or clarify the text in the readme\n\nThere are variables for multiple parts of the readme, the most common ones are:\n\n| Variable | Description |\n| :----: | --- |\n| `project_blurb` | This is the short excerpt shown above the project logo. |\n| `app_setup_block` | This is the text that shows up under \"Application Setup\" if enabled |\n\n### Parameters\n\nThe compose and run examples are also generated from these variables.\n\nWe have a [reference file](https://github.com/linuxserver/docker-jenkins-builder/blob/master/vars/_container-vars-blank) in our Jenkins Builder.\n\nThese are prefixed with `param_` for required parameters, or `opt_param` for optional parameters, except for `cap_add`.\nRemember to enable param, if currently disabled. This differs between parameters, and can be seen in the reference file.\n\nDevices, environment variables, ports and volumes expects its variables in a certain way.\n\n### Devices\n\n```yml\nparam_devices:\n  - { device_path: \"/dev/dri\", device_host_path: \"/dev/dri\", desc: \"For hardware transcoding\" }\nopt_param_devices:\n  - { device_path: \"/dev/dri\", device_host_path: \"/dev/dri\", desc: \"For hardware transcoding\" }\n```\n\n### Environment variables\n\n```yml\nparam_env_vars:\n  - { env_var: \"TZ\", env_value: \"Europe/London\", desc: \"Specify a timezone to use EG Europe/London.\" }\nopt_param_env_vars:\n  - { env_var: \"VERSION\", env_value: \"latest\", desc: \"Supported values are LATEST, PLEXPASS or a specific version number.\" }\n```\n\n### Ports\n\n```yml\nparam_ports:\n  - { external_port: \"80\", internal_port: \"80\", port_desc: \"Application WebUI\" }\nopt_param_ports:\n  - { external_port: \"80\", internal_port: \"80\", port_desc: \"Application WebUI\" }\n```\n\n### Volumes\n\n```yml\nparam_volumes:\n  - { vol_path: \"/config\", vol_host_path: \"</path/to/appdata/config>\", desc: \"Configuration files.\" }\nopt_param_volumes:\n  - { vol_path: \"/config\", vol_host_path: \"</path/to/appdata/config>\", desc: \"Configuration files.\" }\n```\n\n### Testing template changes\n\nAfter you make any changes to the templates, you can use our [Jenkins Builder](https://github.com/linuxserver/docker-jenkins-builder) to have the files updated from the modified templates. Please use the command found under `Running Locally` [on this page](https://github.com/linuxserver/docker-jenkins-builder/blob/master/README.md) to generate them prior to submitting a PR.\n\n## Dockerfiles\n\nWe use multiple Dockerfiles in our repos, this is because sometimes some CPU architectures needs different packages to work.\nIf you are proposing additional packages to be added, ensure that you added the packages to all the Dockerfiles in alphabetical order.\n\n### Testing your changes\n\n```bash\ngit clone https://github.com/linuxserver/docker-ombi.git\ncd docker-ombi\ndocker build \\\n  --no-cache \\\n  --pull \\\n  -t linuxserver/ombi:latest .\n```\n\nThe ARM variants can be built on x86_64 hardware and vice versa using `lscr.io/linuxserver/qemu-static`\n\n```bash\ndocker run --rm --privileged lscr.io/linuxserver/qemu-static --reset\n```\n\nOnce registered you can define the dockerfile to use with `-f Dockerfile.aarch64`.\n\n## Update the changelog\n\nIf you are modifying the Dockerfiles or any of the startup scripts in [root](https://github.com/linuxserver/docker-ombi/tree/master/root), add an entry to the changelog\n\n```yml\nchangelogs:\n  - { date: \"DD.MM.YY:\", desc: \"Added some love to templates\" }\n```\n"
  },
  {
    "path": ".github/FUNDING.yml",
    "content": "github: linuxserver\nopen_collective: linuxserver\ncustom: [\"https://patreon.com/tidusjar\",\"https://paypal.me/PlexRequestsNet\",]\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/config.yml",
    "content": "blank_issues_enabled: false\ncontact_links:\n  - name: Discord chat support\n    url: https://linuxserver.io/discord\n    about: Realtime support / chat with the community and the team.\n\n  - name: Discourse discussion forum\n    url: https://discourse.linuxserver.io\n    about: Post on our community forum.\n\n  - name: Documentation\n    url: https://docs.linuxserver.io/images/docker-ombi\n    about: Documentation - information about all of our containers.\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/issue.bug.yml",
    "content": "# Based on the issue template\nname: Bug report\ndescription: Create a report to help us improve\ntitle: \"[BUG] <title>\"\nlabels: [Bug]\nbody:\n  - type: checkboxes\n    attributes:\n      label: Is there an existing issue for this?\n      description: Please search to see if an issue already exists for the bug you encountered.\n      options:\n        - label: I have searched the existing issues\n          required: true\n  - type: textarea\n    attributes:\n      label: Current Behavior\n      description: Tell us what happens instead of the expected behavior.\n    validations:\n      required: true\n  - type: textarea\n    attributes:\n      label: Expected Behavior\n      description: Tell us what should happen.\n    validations:\n      required: false\n  - type: textarea\n    attributes:\n      label: Steps To Reproduce\n      description: Steps to reproduce the behavior.\n      placeholder: |\n        1. In this environment...\n        2. With this config...\n        3. Run '...'\n        4. See error...\n    validations:\n      required: true\n  - type: textarea\n    attributes:\n      label: Environment\n      description: |\n        examples:\n          - **OS**: Ubuntu 20.04\n          - **How docker service was installed**: distro's packagemanager\n      value: |\n        - OS:\n        - How docker service was installed:\n      render: markdown\n    validations:\n      required: false\n  - type: dropdown\n    attributes:\n      label: CPU architecture\n      options:\n        - x86-64\n        - arm64\n    validations:\n      required: true\n  - type: textarea\n    attributes:\n      label: Docker creation\n      description: |\n        Command used to create docker container\n        Provide your docker create/run command or compose yaml snippet, or a screenshot of settings if using a gui to create the container\n      render: bash\n    validations:\n      required: true\n  - type: textarea\n    attributes:\n      description: |\n        Provide a full docker log, output of \"docker logs ombi\"\n      label: Container logs\n      placeholder: |\n        Output of `docker logs ombi`\n      render: bash\n    validations:\n      required: true\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/issue.feature.yml",
    "content": "# Based on the issue template\nname: Feature request\ndescription: Suggest an idea for this project\ntitle: \"[FEAT] <title>\"\nlabels: [enhancement]\nbody:\n  - type: checkboxes\n    attributes:\n      label: Is this a new feature request?\n      description: Please search to see if a feature request already exists.\n      options:\n        - label: I have searched the existing issues\n          required: true\n  - type: textarea\n    attributes:\n      label: Wanted change\n      description: Tell us what you want to happen.\n    validations:\n      required: true\n  - type: textarea\n    attributes:\n      label: Reason for change\n      description: Justify your request, why do you want it, what is the benefit.\n    validations:\n      required: true\n  - type: textarea\n    attributes:\n      label: Proposed code change\n      description: Do you have a potential code change in mind?\n    validations:\n      required: false\n"
  },
  {
    "path": ".github/PULL_REQUEST_TEMPLATE.md",
    "content": "<!--- Provide a general summary of your changes in the Title above -->\n\n[linuxserverurl]: https://linuxserver.io\n[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl]\n\n\n<!--- Before submitting a pull request please check the following -->\n\n<!---  If this is a fix for a typo (in code, documentation, or the README) please file an issue and let us sort it out. We do not need a PR  -->\n<!---  Ask yourself if this modification is something the whole userbase will benefit from, if this is a specific change for corner case functionality or plugins please look at making a Docker Mod or local script  https://blog.linuxserver.io/2019/09/14/customizing-our-containers/ -->\n<!---  That if the PR is addressing an existing issue include, closes #<issue number> , in the body of the PR commit message   -->\n<!---  You have included links to any files / patches etc your PR may be using in the body of the PR commit message -->\n<!--- We maintain a changelog of major revisions to the container at the end of readme-vars.yml in the root of this repository, please add your changes there if appropriate -->\n\n\n<!--- Coding guidelines: -->\n<!--- 1. Installed packages in the Dockerfiles should be in alphabetical order -->\n<!--- 2. Changes to Dockerfile should be replicated in Dockerfile.armhf and Dockerfile.aarch64 if applicable -->\n<!--- 3. Indentation style (tabs vs 4 spaces vs 1 space) should match the rest of the document -->\n<!--- 4. Readme is auto generated from readme-vars.yml, make your changes there -->\n\n------------------------------\n\n - [ ] I have read the [contributing](https://github.com/linuxserver/docker-ombi/blob/master/.github/CONTRIBUTING.md) guideline and understand that I have made the correct modifications\n\n------------------------------\n\n<!--- We welcome all PR’s though this doesn’t guarantee it will be accepted. -->\n\n## Description:\n<!--- Describe your changes in detail -->\n\n## Benefits of this PR and context:\n<!--- Please explain why we should accept this PR. If this fixes an outstanding bug, please reference the issue # -->\n\n## How Has This Been Tested?\n<!--- Please describe in detail how you tested your changes. -->\n<!--- Include details of your testing environment, and the tests you ran to -->\n<!--- see how your change affects other areas of the code, etc. -->\n\n\n## Source / References:\n<!--- Please include any forum posts/github links relevant to the PR -->\n"
  },
  {
    "path": ".github/workflows/call_issue_pr_tracker.yml",
    "content": "name: Issue & PR Tracker\n\non:\n  issues:\n    types: [opened,reopened,labeled,unlabeled,closed]\n  pull_request_target:\n    types: [opened,reopened,review_requested,review_request_removed,labeled,unlabeled,closed]\n  pull_request_review:\n    types: [submitted,edited,dismissed]\n\npermissions:\n  contents: read\n\njobs:\n  manage-project:\n    permissions:\n      issues: write\n    uses: linuxserver/github-workflows/.github/workflows/issue-pr-tracker.yml@v1\n    secrets: inherit\n"
  },
  {
    "path": ".github/workflows/call_issues_cron.yml",
    "content": "name: Mark stale issues and pull requests\non:\n  schedule:\n    - cron:  '4 11 * * *'\n  workflow_dispatch:\n\npermissions:\n  contents: read\n\njobs:\n  stale:\n    permissions:\n      issues: write\n      pull-requests: write\n    uses: linuxserver/github-workflows/.github/workflows/issues-cron.yml@v1\n    secrets: inherit\n"
  },
  {
    "path": ".github/workflows/external_trigger.yml",
    "content": "name: External Trigger Main\n\non:\n  workflow_dispatch:\n\npermissions:\n  contents: read\n\njobs:\n  external-trigger-master:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4.1.1\n\n      - name: External Trigger\n        if: github.ref == 'refs/heads/master'\n        env:\n          SKIP_EXTERNAL_TRIGGER: ${{ vars.SKIP_EXTERNAL_TRIGGER }}\n        run: |\n          printf \"# External trigger for docker-ombi\\n\\n\" >> $GITHUB_STEP_SUMMARY\n          if grep -q \"^ombi_master_\" <<< \"${SKIP_EXTERNAL_TRIGGER}\"; then\n            echo \"> [!NOTE]\" >> $GITHUB_STEP_SUMMARY\n            echo \"> Github organizational variable \\`SKIP_EXTERNAL_TRIGGER\\` contains \\`ombi_master_\\`; will skip trigger if version matches.\" >> $GITHUB_STEP_SUMMARY\n          elif grep -q \"^ombi_master\" <<< \"${SKIP_EXTERNAL_TRIGGER}\"; then\n            echo \"> [!WARNING]\" >> $GITHUB_STEP_SUMMARY\n            echo \"> Github organizational variable \\`SKIP_EXTERNAL_TRIGGER\\` contains \\`ombi_master\\`; skipping trigger.\" >> $GITHUB_STEP_SUMMARY\n            exit 0\n          fi\n          echo \"> [!NOTE]\" >> $GITHUB_STEP_SUMMARY\n          echo \"> External trigger running off of master branch. To disable this trigger, add \\`ombi_master\\` into the Github organizational variable \\`SKIP_EXTERNAL_TRIGGER\\`.\" >> $GITHUB_STEP_SUMMARY\n          printf \"\\n## Retrieving external version\\n\\n\" >> $GITHUB_STEP_SUMMARY\n          EXT_RELEASE=$(curl -u \"${{ secrets.CR_USER }}:${{ secrets.CR_PAT }}\" -sX GET \"https://api.github.com/repos/Ombi-app/Ombi/releases/latest\" | jq -r '. | .tag_name')\n          echo \"Type is \\`github_stable\\`\" >> $GITHUB_STEP_SUMMARY\n          if grep -q \"^ombi_master_${EXT_RELEASE}\" <<< \"${SKIP_EXTERNAL_TRIGGER}\"; then\n            echo \"> [!WARNING]\" >> $GITHUB_STEP_SUMMARY\n            echo \"> Github organizational variable \\`SKIP_EXTERNAL_TRIGGER\\` matches current external release; skipping trigger.\" >> $GITHUB_STEP_SUMMARY\n            exit 0\n          fi\n          if [ -z \"${EXT_RELEASE}\" ] || [ \"${EXT_RELEASE}\" == \"null\" ]; then\n            echo \"> [!WARNING]\" >> $GITHUB_STEP_SUMMARY\n            echo \"> Can't retrieve external version, exiting\" >> $GITHUB_STEP_SUMMARY\n            FAILURE_REASON=\"Can't retrieve external version for ombi branch master\"\n            GHA_TRIGGER_URL=\"https://github.com/linuxserver/docker-ombi/actions/runs/${{ github.run_id }}\"\n            curl -X POST -H \"Content-Type: application/json\" --data '{\"avatar_url\": \"https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png\",\"embeds\": [{\"color\": 16711680,\n              \"description\": \"**Trigger Failed** \\n**Reason:** '\"${FAILURE_REASON}\"' \\n**Trigger URL:** '\"${GHA_TRIGGER_URL}\"' \\n\"}],\n              \"username\": \"Github Actions\"}' ${{ secrets.DISCORD_WEBHOOK }}\n            exit 1\n          fi\n          EXT_RELEASE_SANITIZED=$(echo ${EXT_RELEASE} | sed 's/[~,%@+;:/]//g')\n          echo \"Sanitized external version: \\`${EXT_RELEASE_SANITIZED}\\`\" >> $GITHUB_STEP_SUMMARY\n          echo \"Retrieving last pushed version\" >> $GITHUB_STEP_SUMMARY\n          image=\"linuxserver/ombi\"\n          tag=\"latest\"\n          token=$(curl -sX GET \\\n            \"https://ghcr.io/token?scope=repository%3Alinuxserver%2Fombi%3Apull\" \\\n            | jq -r '.token')\n          multidigest=$(curl -s \\\n            --header \"Accept: application/vnd.docker.distribution.manifest.v2+json\" \\\n            --header \"Accept: application/vnd.oci.image.index.v1+json\" \\\n            --header \"Authorization: Bearer ${token}\" \\\n            \"https://ghcr.io/v2/${image}/manifests/${tag}\")\n          if jq -e '.layers // empty' <<< \"${multidigest}\" >/dev/null 2>&1; then\n            # If there's a layer element it's a single-arch manifest so just get that digest\n            digest=$(jq -r '.config.digest' <<< \"${multidigest}\")\n          else\n            # Otherwise it's multi-arch or has manifest annotations\n            if jq -e '.manifests[]?.annotations // empty' <<< \"${multidigest}\" >/dev/null 2>&1; then\n              # Check for manifest annotations and delete if found\n              multidigest=$(jq 'del(.manifests[] | select(.annotations))' <<< \"${multidigest}\")\n            fi\n            if [[ $(jq '.manifests | length' <<< \"${multidigest}\") -gt 1 ]]; then\n              # If there's still more than one digest, it's multi-arch\n              multidigest=$(jq -r \".manifests[] | select(.platform.architecture == \\\"amd64\\\").digest?\" <<< \"${multidigest}\")\n            else\n              # Otherwise it's single arch\n              multidigest=$(jq -r \".manifests[].digest?\" <<< \"${multidigest}\")\n            fi\n            if digest=$(curl -s \\\n              --header \"Accept: application/vnd.docker.distribution.manifest.v2+json\" \\\n              --header \"Accept: application/vnd.oci.image.manifest.v1+json\" \\\n              --header \"Authorization: Bearer ${token}\" \\\n              \"https://ghcr.io/v2/${image}/manifests/${multidigest}\"); then\n              digest=$(jq -r '.config.digest' <<< \"${digest}\");\n            fi\n          fi\n          image_info=$(curl -sL \\\n            --header \"Authorization: Bearer ${token}\" \\\n            \"https://ghcr.io/v2/${image}/blobs/${digest}\")\n          if [[ $(echo $image_info | jq -r '.container_config') == \"null\" ]]; then\n            image_info=$(echo $image_info | jq -r '.config')\n          else\n            image_info=$(echo $image_info | jq -r '.container_config')\n          fi\n          IMAGE_RELEASE=$(echo ${image_info} | jq -r '.Labels.build_version' | awk '{print $3}')\n          IMAGE_VERSION=$(echo ${IMAGE_RELEASE} | awk -F'-ls' '{print $1}')\n          if [ -z \"${IMAGE_VERSION}\" ]; then\n            echo \"> [!WARNING]\" >> $GITHUB_STEP_SUMMARY\n            echo \"Can't retrieve last pushed version, exiting\" >> $GITHUB_STEP_SUMMARY\n            FAILURE_REASON=\"Can't retrieve last pushed version for ombi tag latest\"\n            curl -X POST -H \"Content-Type: application/json\" --data '{\"avatar_url\": \"https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png\",\"embeds\": [{\"color\": 16711680,\n              \"description\": \"**Trigger Failed** \\n**Reason:** '\"${FAILURE_REASON}\"' \\n\"}],\n              \"username\": \"Github Actions\"}' ${{ secrets.DISCORD_WEBHOOK }}\n            exit 1\n          fi\n          echo \"Last pushed version: \\`${IMAGE_VERSION}\\`\" >> $GITHUB_STEP_SUMMARY\n          if [ \"${EXT_RELEASE_SANITIZED}\" == \"${IMAGE_VERSION}\" ]; then\n            echo \"Sanitized version \\`${EXT_RELEASE_SANITIZED}\\` already pushed, exiting\" >> $GITHUB_STEP_SUMMARY\n            exit 0\n          elif [ $(curl -s https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-ombi/job/master/lastBuild/api/json | jq -r '.building') == \"true\" ]; then\n            echo \"New version \\`${EXT_RELEASE}\\` found; but there already seems to be an active build on Jenkins; exiting\" >> $GITHUB_STEP_SUMMARY\n            exit 0\n          else\n            if [[ \"${artifacts_found}\" == \"false\" ]]; then\n              echo \"> [!WARNING]\" >> $GITHUB_STEP_SUMMARY\n              echo \"> New version detected, but not all artifacts are published yet; skipping trigger\" >> $GITHUB_STEP_SUMMARY\n              FAILURE_REASON=\"New version ${EXT_RELEASE} for ombi tag latest is detected, however not all artifacts are uploaded to upstream release yet. Will try again later.\"\n              curl -X POST -H \"Content-Type: application/json\" --data '{\"avatar_url\": \"https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png\",\"embeds\": [{\"color\": 9802903,\n                \"description\": \"**Trigger Failed** \\n**Reason:** '\"${FAILURE_REASON}\"' \\n\"}],\n                \"username\": \"Github Actions\"}' ${{ secrets.DISCORD_WEBHOOK }}\n            else\n              printf \"\\n## Trigger new build\\n\\n\" >> $GITHUB_STEP_SUMMARY\n              echo \"New sanitized version \\`${EXT_RELEASE_SANITIZED}\\` found; old version was \\`${IMAGE_VERSION}\\`. Triggering new build\" >> $GITHUB_STEP_SUMMARY\n              if [[ \"${artifacts_found}\" == \"true\" ]]; then\n                echo \"All artifacts seem to be uploaded.\" >> $GITHUB_STEP_SUMMARY\n              fi\n              response=$(curl -iX POST \\\n                https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-ombi/job/master/buildWithParameters?PACKAGE_CHECK=false \\\n                --user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} | grep -i location | sed \"s|^[L|l]ocation: \\(.*\\)|\\1|\")\n              echo \"Jenkins [job queue url](${response%$'\\r'})\" >> $GITHUB_STEP_SUMMARY\n              echo \"Sleeping 10 seconds until job starts\" >> $GITHUB_STEP_SUMMARY\n              sleep 10\n              buildurl=$(curl -s \"${response%$'\\r'}api/json\" | jq -r '.executable.url')\n              buildurl=\"${buildurl%$'\\r'}\"\n              echo \"Jenkins job [build url](${buildurl})\" >> $GITHUB_STEP_SUMMARY\n              echo \"Attempting to change the Jenkins job description\" >> $GITHUB_STEP_SUMMARY\n              curl -iX POST \\\n                \"${buildurl}submitDescription\" \\\n                --user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} \\\n                --data-urlencode \"description=GHA external trigger https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}\" \\\n                --data-urlencode \"Submit=Submit\"\n              echo \"**** Notifying Discord ****\"\n              TRIGGER_REASON=\"A version change was detected for ombi tag latest. Old version:${IMAGE_VERSION} New version:${EXT_RELEASE_SANITIZED}\"\n              curl -X POST -H \"Content-Type: application/json\" --data '{\"avatar_url\": \"https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png\",\"embeds\": [{\"color\": 9802903,\n                \"description\": \"**Build Triggered** \\n**Reason:** '\"${TRIGGER_REASON}\"' \\n**Build URL:** '\"${buildurl}display/redirect\"' \\n\"}],\n                \"username\": \"Github Actions\"}' ${{ secrets.DISCORD_WEBHOOK }}\n            fi\n          fi\n"
  },
  {
    "path": ".github/workflows/external_trigger_scheduler.yml",
    "content": "name: External Trigger Scheduler\n\non:\n  schedule:\n    - cron:  '45 * * * *'\n  workflow_dispatch:\n\npermissions:\n  contents: read\n\njobs:\n  external-trigger-scheduler:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4.1.1\n        with:\n          fetch-depth: '0'\n\n      - name: External Trigger Scheduler\n        run: |\n          printf \"# External trigger scheduler for docker-ombi\\n\\n\" >> $GITHUB_STEP_SUMMARY\n          printf \"Found the branches:\\n\\n%s\\n\" \"$(git for-each-ref --format='- %(refname:lstrip=3)' refs/remotes)\" >> $GITHUB_STEP_SUMMARY\n          for br in $(git for-each-ref --format='%(refname:lstrip=3)' refs/remotes)\n          do\n            if [[ \"${br}\" == \"HEAD\" ]]; then\n              printf \"\\nSkipping %s.\\n\" ${br} >> $GITHUB_STEP_SUMMARY\n              continue\n            fi\n            printf \"\\n## Evaluating \\`%s\\`\\n\\n\" ${br} >> $GITHUB_STEP_SUMMARY\n            ls_jenkins_vars=$(curl -sX GET https://raw.githubusercontent.com/linuxserver/docker-ombi/${br}/jenkins-vars.yml)\n            ls_branch=$(echo \"${ls_jenkins_vars}\" | yq -r '.ls_branch')\n            ls_trigger=$(echo \"${ls_jenkins_vars}\" | yq -r '.external_type')\n            if [[ \"${br}\" == \"${ls_branch}\" ]] && [[ \"${ls_trigger}\" != \"os\" ]]; then\n              echo \"Branch appears to be live and trigger is not os; checking workflow.\" >> $GITHUB_STEP_SUMMARY\n              if curl -sfX GET https://raw.githubusercontent.com/linuxserver/docker-ombi/${br}/.github/workflows/external_trigger.yml > /dev/null 2>&1; then\n                echo \"Triggering external trigger workflow for branch.\" >> $GITHUB_STEP_SUMMARY\n                curl -iX POST \\\n                  -H \"Authorization: token ${{ secrets.CR_PAT }}\" \\\n                  -H \"Accept: application/vnd.github.v3+json\" \\\n                  -d \"{\\\"ref\\\":\\\"refs/heads/${br}\\\"}\" \\\n                  https://api.github.com/repos/linuxserver/docker-ombi/actions/workflows/external_trigger.yml/dispatches\n              else\n                echo \"Skipping branch due to no external trigger workflow present.\" >> $GITHUB_STEP_SUMMARY\n              fi\n            else\n              echo \"Skipping branch due to being detected as dev branch or having no external version.\" >> $GITHUB_STEP_SUMMARY\n            fi\n          done\n"
  },
  {
    "path": ".github/workflows/greetings.yml",
    "content": "name: Greetings\n\non: [pull_request_target, issues]\n\npermissions:\n  contents: read\n\njobs:\n  greeting:\n    permissions:\n      issues: write\n      pull-requests: write\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions/first-interaction@v1\n      with:\n        issue-message: 'Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.'\n        pr-message: 'Thanks for opening this pull request! Be sure to follow the [pull request template](https://github.com/linuxserver/docker-ombi/blob/master/.github/PULL_REQUEST_TEMPLATE.md)!'\n        repo-token: ${{ secrets.GITHUB_TOKEN }}\n"
  },
  {
    "path": ".github/workflows/package_trigger_scheduler.yml",
    "content": "name: Package Trigger Scheduler\n\non:\n  schedule:\n    - cron:  '17 22 * * 6'\n  workflow_dispatch:\n\npermissions:\n  contents: read\n\njobs:\n  package-trigger-scheduler:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4.1.1\n        with:\n          fetch-depth: '0'\n\n      - name: Package Trigger Scheduler\n        env:\n          SKIP_PACKAGE_TRIGGER: ${{ vars.SKIP_PACKAGE_TRIGGER }}\n        run: |\n          printf \"# Package trigger scheduler for docker-ombi\\n\\n\" >> $GITHUB_STEP_SUMMARY\n          printf \"Found the branches:\\n\\n%s\\n\" \"$(git for-each-ref --format='- %(refname:lstrip=3)' refs/remotes)\" >> $GITHUB_STEP_SUMMARY\n          for br in $(git for-each-ref --format='%(refname:lstrip=3)' refs/remotes)\n          do\n            if [[ \"${br}\" == \"HEAD\" ]]; then\n              printf \"\\nSkipping %s.\\n\" ${br} >> $GITHUB_STEP_SUMMARY\n              continue\n            fi\n            printf \"\\n## Evaluating \\`%s\\`\\n\\n\" ${br} >> $GITHUB_STEP_SUMMARY\n            JENKINS_VARS=$(curl -sX GET https://raw.githubusercontent.com/linuxserver/docker-ombi/${br}/jenkins-vars.yml)\n            if ! curl -sfX GET https://raw.githubusercontent.com/linuxserver/docker-ombi/${br}/Jenkinsfile >/dev/null 2>&1; then\n              echo \"> [!WARNING]\" >> $GITHUB_STEP_SUMMARY\n              echo \"> No Jenkinsfile found. Branch is either deprecated or is an early dev branch.\" >> $GITHUB_STEP_SUMMARY\n              skipped_branches=\"${skipped_branches}${br} \"\n            elif [[ \"${br}\" == $(yq -r '.ls_branch' <<< \"${JENKINS_VARS}\") ]]; then\n              echo \"Branch appears to be live; checking workflow.\" >> $GITHUB_STEP_SUMMARY\n              README_VARS=$(curl -sX GET https://raw.githubusercontent.com/linuxserver/docker-ombi/${br}/readme-vars.yml)\n              if [[ $(yq -r '.project_deprecation_status' <<< \"${README_VARS}\") == \"true\" ]]; then\n                echo \"> [!WARNING]\" >> $GITHUB_STEP_SUMMARY\n                echo \"> Branch appears to be deprecated; skipping trigger.\" >> $GITHUB_STEP_SUMMARY\n                skipped_branches=\"${skipped_branches}${br} \"\n              elif [[ $(yq -r '.skip_package_check' <<< \"${JENKINS_VARS}\") == \"true\" ]]; then\n                echo \"> [!WARNING]\" >> $GITHUB_STEP_SUMMARY\n                echo \"> Skipping branch ${br} due to \\`skip_package_check\\` being set in \\`jenkins-vars.yml\\`.\" >> $GITHUB_STEP_SUMMARY\n                skipped_branches=\"${skipped_branches}${br} \"\n              elif grep -q \"^ombi_${br}\" <<< \"${SKIP_PACKAGE_TRIGGER}\"; then\n                echo \"> [!WARNING]\" >> $GITHUB_STEP_SUMMARY\n                echo \"> Github organizational variable \\`SKIP_PACKAGE_TRIGGER\\` contains \\`ombi_${br}\\`; skipping trigger.\" >> $GITHUB_STEP_SUMMARY\n                skipped_branches=\"${skipped_branches}${br} \"\n              elif [ $(curl -s https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-ombi/job/${br}/lastBuild/api/json | jq -r '.building' 2>/dev/null) == \"true\" ]; then\n                echo \"> [!WARNING]\" >> $GITHUB_STEP_SUMMARY\n                echo \"> There already seems to be an active build on Jenkins; skipping package trigger for ${br}\" >> $GITHUB_STEP_SUMMARY\n                skipped_branches=\"${skipped_branches}${br} \"\n              else\n                echo \"> [!NOTE]\" >> $GITHUB_STEP_SUMMARY\n                echo \"> Triggering package trigger for branch ${br}\" >> $GITHUB_STEP_SUMMARY\n                printf \"> To disable, add \\`ombi_%s\\` into the Github organizational variable \\`SKIP_PACKAGE_TRIGGER\\`.\\n\\n\" \"${br}\" >> $GITHUB_STEP_SUMMARY\n                triggered_branches=\"${triggered_branches}${br} \"\n                response=$(curl -iX POST \\\n                  https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-ombi/job/${br}/buildWithParameters?PACKAGE_CHECK=true \\\n                  --user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} | grep -i location | sed \"s|^[L|l]ocation: \\(.*\\)|\\1|\")\n                if [[ -z \"${response}\" ]]; then\n                  echo \"> [!WARNING]\" >> $GITHUB_STEP_SUMMARY\n                  echo \"> Jenkins build could not be triggered. Skipping branch.\"\n                  continue\n                fi\n                echo \"Jenkins [job queue url](${response%$'\\r'})\" >> $GITHUB_STEP_SUMMARY\n                echo \"Sleeping 10 seconds until job starts\" >> $GITHUB_STEP_SUMMARY\n                sleep 10\n                buildurl=$(curl -s \"${response%$'\\r'}api/json\" | jq -r '.executable.url')\n                buildurl=\"${buildurl%$'\\r'}\"\n                echo \"Jenkins job [build url](${buildurl})\" >> $GITHUB_STEP_SUMMARY\n                echo \"Attempting to change the Jenkins job description\" >> $GITHUB_STEP_SUMMARY\n                if ! curl -ifX POST \\\n                  \"${buildurl}submitDescription\" \\\n                  --user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} \\\n                  --data-urlencode \"description=GHA package trigger https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}\" \\\n                  --data-urlencode \"Submit=Submit\"; then\n                  echo \"> [!WARNING]\" >> $GITHUB_STEP_SUMMARY\n                  echo \"> Unable to change the Jenkins job description.\"\n                fi\n                sleep 20\n              fi\n            else\n              echo \"Skipping branch ${br} due to being detected as dev branch.\" >> $GITHUB_STEP_SUMMARY\n            fi\n          done\n          if [[ -n \"${triggered_branches}\" ]] || [[ -n \"${skipped_branches}\" ]]; then\n            if [[ -n \"${triggered_branches}\" ]]; then\n              NOTIFY_BRANCHES=\"**Triggered:** ${triggered_branches} \\n\"\n              NOTIFY_BUILD_URL=\"**Build URL:** https://ci.linuxserver.io/blue/organizations/jenkins/Docker-Pipeline-Builders%2Fdocker-ombi/activity/ \\n\"\n              echo \"**** Package check build(s) triggered for branch(es): ${triggered_branches} ****\"\n            fi\n            if [[ -n \"${skipped_branches}\" ]]; then\n              NOTIFY_BRANCHES=\"${NOTIFY_BRANCHES}**Skipped:** ${skipped_branches} \\n\"\n            fi\n            echo \"**** Notifying Discord ****\"\n            curl -X POST -H \"Content-Type: application/json\" --data '{\"avatar_url\": \"https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png\",\"embeds\": [{\"color\": 9802903,\n              \"description\": \"**Package Check Build(s) for ombi** \\n'\"${NOTIFY_BRANCHES}\"''\"${NOTIFY_BUILD_URL}\"'\"}],\n              \"username\": \"Github Actions\"}' ${{ secrets.DISCORD_WEBHOOK }}\n          fi\n"
  },
  {
    "path": ".github/workflows/permissions.yml",
    "content": "name: Permission check\non:\n  pull_request_target:\n    paths:\n      - '**/run'\n      - '**/finish'\n      - '**/check'\n      - 'root/migrations/*'\n\njobs:\n  permission_check:\n    uses: linuxserver/github-workflows/.github/workflows/init-svc-executable-permissions.yml@v1\n"
  },
  {
    "path": ".gitignore",
    "content": "# Windows image file caches\nThumbs.db\nehthumbs.db\n\n# Folder config file\nDesktop.ini\n\n# Recycle Bin used on file shares\n$RECYCLE.BIN/\n\n# Windows Installer files\n*.cab\n*.msi\n*.msm\n*.msp\n\n# Windows shortcuts\n*.lnk\n\n# =========================\n# Operating System Files\n# =========================\n\n# OSX\n# =========================\n\n.DS_Store\n.AppleDouble\n.LSOverride\n\n# Thumbnails\n._*\n\n# Files that might appear on external disk\n.Spotlight-V100\n.Trashes\n\n# Directories potentially created on remote AFP share\n.AppleDB\n.AppleDesktop\nNetwork Trash Folder\nTemporary Items\n.apdisk\n.jenkins-external\n"
  },
  {
    "path": "Dockerfile",
    "content": "FROM ghcr.io/linuxserver/baseimage-ubuntu:noble\n\n# set version label\nARG BUILD_DATE\nARG VERSION\nARG OMBI_RELEASE\nLABEL build_version=\"Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}\"\nLABEL maintainer=\"aptalca\"\n\n# environment settings\nENV HOME=\"/config\" \\\n  COMPlus_EnableDiagnostics=0 \\\n  DEBIAN_FRONTEND=\"noninteractive\" \\\n  TMPDIR=/run/ombi-temp\n\nRUN \\\n  apt-get update && \\\n  apt-get install -y \\\n    libicu74 && \\\n  echo \"**** install ombi ****\" && \\\n  mkdir -p \\\n    /app/ombi && \\\n  if [ -z ${OMBI_RELEASE+x} ]; then \\\n    OMBI_RELEASE=$(curl -sX GET \"https://api.github.com/repos/Ombi-app/Ombi/releases/latest\" \\\n    | awk '/tag_name/{print $4;exit}' FS='[\"\"]'); \\\n  fi && \\\n  curl -o \\\n  /tmp/ombi-src.tar.gz -L \\\n    \"https://github.com/Ombi-app/Ombi/releases/download/${OMBI_RELEASE}/linux-x64.tar.gz\" && \\\n  tar xzf /tmp/ombi-src.tar.gz -C \\\n    /app/ombi/ && \\\n  chmod +x /app/ombi/Ombi && \\\n  printf \"Linuxserver.io version: ${VERSION}\\nBuild-date: ${BUILD_DATE}\" > /build_version && \\\n  echo \"**** clean up ****\" && \\\n  rm -rf \\\n    /tmp/* \\\n    /var/lib/apt/lists/* \\\n    /var/tmp/*\n\n# add local files\nCOPY /root /\n\n# ports and volumes\nEXPOSE 3579\n"
  },
  {
    "path": "Dockerfile.aarch64",
    "content": "FROM ghcr.io/linuxserver/baseimage-ubuntu:arm64v8-noble\n\n# set version label\nARG BUILD_DATE\nARG VERSION\nARG OMBI_RELEASE\nLABEL build_version=\"Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}\"\nLABEL maintainer=\"aptalca\"\n\n# environment settings\nENV HOME=\"/config\" \\\n  COMPlus_EnableDiagnostics=0 \\\n  DEBIAN_FRONTEND=\"noninteractive\" \\\n  TMPDIR=/run/ombi-temp\n\nRUN \\\n  apt-get update && \\\n  apt-get install -y \\\n    libicu74 && \\\n  echo \"**** install ombi ****\" && \\\n  mkdir -p \\\n    /app/ombi && \\\n  if [ -z ${OMBI_RELEASE+x} ]; then \\\n    OMBI_RELEASE=$(curl -sX GET \"https://api.github.com/repos/Ombi-app/Ombi/releases/latest\" \\\n    | awk '/tag_name/{print $4;exit}' FS='[\"\"]'); \\\n  fi && \\\n  curl -o \\\n  /tmp/ombi-src.tar.gz -L \\\n    \"https://github.com/Ombi-app/Ombi/releases/download/${OMBI_RELEASE}/linux-arm64.tar.gz\" && \\\n  tar xzf /tmp/ombi-src.tar.gz -C \\\n    /app/ombi/ && \\\n  chmod +x /app/ombi/Ombi && \\\n  printf \"Linuxserver.io version: ${VERSION}\\nBuild-date: ${BUILD_DATE}\" > /build_version && \\\n  echo \"**** clean up ****\" && \\\n  rm -rf \\\n    /tmp/* \\\n    /var/lib/apt/lists/* \\\n    /var/tmp/*\n\n# add local files\nCOPY /root /\n\n# ports and volumes\nEXPOSE 3579\n"
  },
  {
    "path": "Jenkinsfile",
    "content": "pipeline {\n  agent {\n    label 'X86-64-MULTI'\n  }\n  options {\n    buildDiscarder(logRotator(numToKeepStr: '10', daysToKeepStr: '60'))\n    parallelsAlwaysFailFast()\n  }\n  // Input to determine if this is a package check\n  parameters {\n    string(defaultValue: 'false', description: 'package check run', name: 'PACKAGE_CHECK')\n  }\n  // Configuration for the variables used for this specific repo\n  environment {\n    BUILDS_DISCORD=credentials('build_webhook_url')\n    GITHUB_TOKEN=credentials('498b4638-2d02-4ce5-832d-8a57d01d97ab')\n    GITLAB_TOKEN=credentials('b6f0f1dd-6952-4cf6-95d1-9c06380283f0')\n    GITLAB_NAMESPACE=credentials('gitlab-namespace-id')\n    DOCKERHUB_TOKEN=credentials('docker-hub-ci-pat')\n    QUAYIO_API_TOKEN=credentials('quayio-repo-api-token')\n    GIT_SIGNING_KEY=credentials('484fbca6-9a4f-455e-b9e3-97ac98785f5f')\n    EXT_GIT_BRANCH = 'master'\n    EXT_USER = 'Ombi-app'\n    EXT_REPO = 'Ombi'\n    CONTAINER_NAME = 'ombi'\n    BUILD_VERSION_ARG = 'OMBI_RELEASE'\n    LS_USER = 'linuxserver'\n    LS_REPO = 'docker-ombi'\n    DOCKERHUB_IMAGE = 'linuxserver/ombi'\n    DEV_DOCKERHUB_IMAGE = 'lsiodev/ombi'\n    PR_DOCKERHUB_IMAGE = 'lspipepr/ombi'\n    DIST_IMAGE = 'ubuntu'\n    MULTIARCH='true'\n    CI='true'\n    CI_WEB='true'\n    CI_PORT='3579'\n    CI_SSL='false'\n    CI_DELAY='120'\n    CI_DOCKERENV=''\n    CI_AUTH=''\n    CI_WEBPATH=''\n  }\n  stages {\n    stage(\"Set git config\"){\n      steps{\n        sh '''#!/bin/bash\n              cat ${GIT_SIGNING_KEY} > /config/.ssh/id_sign\n              chmod 600 /config/.ssh/id_sign\n              ssh-keygen -y -f /config/.ssh/id_sign > /config/.ssh/id_sign.pub\n              echo \"Using $(ssh-keygen -lf /config/.ssh/id_sign) to sign commits\"\n              git config --global gpg.format ssh\n              git config --global user.signingkey /config/.ssh/id_sign\n              git config --global commit.gpgsign true\n        '''\n      }\n    }\n    // Setup all the basic environment variables needed for the build\n    stage(\"Set ENV Variables base\"){\n      steps{\n        echo \"Running on node: ${NODE_NAME}\"\n        sh '''#! /bin/bash\n              echo \"Pruning builder\"\n              docker builder prune -f --builder container || :\n              containers=$(docker ps -q)\n              if [[ -n \"${containers}\" ]]; then\n                BUILDX_CONTAINER_ID=$(docker ps -qf 'name=buildx_buildkit')\n                for container in ${containers}; do\n                  if [[ \"${container}\" == \"${BUILDX_CONTAINER_ID}\" ]]; then\n                    echo \"skipping buildx container in docker stop\"\n                  else\n                    echo \"Stopping container ${container}\"\n                    docker stop ${container}\n                  fi\n                done\n              fi\n              docker system prune -f --volumes || :\n              docker image prune -af || :\n           '''\n        script{\n          env.EXIT_STATUS = ''\n          env.CI_TEST_ATTEMPTED = ''\n          env.LS_RELEASE = sh(\n            script: '''docker run --rm quay.io/skopeo/stable:v1 inspect docker://ghcr.io/${LS_USER}/${CONTAINER_NAME}:latest 2>/dev/null | jq -r '.Labels.build_version' | awk '{print $3}' | grep '\\\\-ls' || : ''',\n            returnStdout: true).trim()\n          env.LS_RELEASE_NOTES = sh(\n            script: '''cat readme-vars.yml | awk -F \\\\\" '/date: \"[0-9][0-9].[0-9][0-9].[0-9][0-9]:/ {print $4;exit;}' | sed -E ':a;N;$!ba;s/\\\\r{0,1}\\\\n/\\\\\\\\n/g' ''',\n            returnStdout: true).trim()\n          env.GITHUB_DATE = sh(\n            script: '''date '+%Y-%m-%dT%H:%M:%S%:z' ''',\n            returnStdout: true).trim()\n          env.COMMIT_SHA = sh(\n            script: '''git rev-parse HEAD''',\n            returnStdout: true).trim()\n          env.GH_DEFAULT_BRANCH = sh(\n            script: '''git remote show origin | grep \"HEAD branch:\" | sed 's|.*HEAD branch: ||' ''',\n            returnStdout: true).trim()\n          env.CODE_URL = 'https://github.com/' + env.LS_USER + '/' + env.LS_REPO + '/commit/' + env.GIT_COMMIT\n          env.DOCKERHUB_LINK = 'https://hub.docker.com/r/' + env.DOCKERHUB_IMAGE + '/tags/'\n          env.PULL_REQUEST = env.CHANGE_ID\n          env.TEMPLATED_FILES = 'Jenkinsfile README.md LICENSE .editorconfig ./.github/CONTRIBUTING.md ./.github/FUNDING.yml ./.github/ISSUE_TEMPLATE/config.yml ./.github/ISSUE_TEMPLATE/issue.bug.yml ./.github/ISSUE_TEMPLATE/issue.feature.yml ./.github/PULL_REQUEST_TEMPLATE.md ./.github/workflows/external_trigger_scheduler.yml ./.github/workflows/greetings.yml ./.github/workflows/package_trigger_scheduler.yml ./.github/workflows/call_issue_pr_tracker.yml ./.github/workflows/call_issues_cron.yml ./.github/workflows/permissions.yml ./.github/workflows/external_trigger.yml ./root/donate.txt'\n          if ( env.SYFT_IMAGE_TAG == null ) {\n            env.SYFT_IMAGE_TAG = 'latest'\n          }\n        }\n        echo \"Using syft image tag ${SYFT_IMAGE_TAG}\"\n        sh '''#! /bin/bash\n              echo \"The default github branch detected as ${GH_DEFAULT_BRANCH}\" '''\n        script{\n          env.LS_RELEASE_NUMBER = sh(\n            script: '''echo ${LS_RELEASE} |sed 's/^.*-ls//g' ''',\n            returnStdout: true).trim()\n        }\n        script{\n          env.LS_TAG_NUMBER = sh(\n            script: '''#! /bin/bash\n                       tagsha=$(git rev-list -n 1 ${LS_RELEASE} 2>/dev/null)\n                       if [ \"${tagsha}\" == \"${COMMIT_SHA}\" ]; then\n                         echo ${LS_RELEASE_NUMBER}\n                       elif [ -z \"${GIT_COMMIT}\" ]; then\n                         echo ${LS_RELEASE_NUMBER}\n                       else\n                         echo $((${LS_RELEASE_NUMBER} + 1))\n                       fi''',\n            returnStdout: true).trim()\n        }\n      }\n    }\n    /* #######################\n       Package Version Tagging\n       ####################### */\n    // Grab the current package versions in Git to determine package tag\n    stage(\"Set Package tag\"){\n      steps{\n        script{\n          env.PACKAGE_TAG = sh(\n            script: '''#!/bin/bash\n                       if [ -e package_versions.txt ] ; then\n                         cat package_versions.txt | md5sum | cut -c1-8\n                       else\n                         echo none\n                       fi''',\n            returnStdout: true).trim()\n        }\n      }\n    }\n    /* ########################\n       External Release Tagging\n       ######################## */\n    // If this is a stable github release use the latest endpoint from github to determine the ext tag\n    stage(\"Set ENV github_stable\"){\n     steps{\n       script{\n         env.EXT_RELEASE = sh(\n           script: '''curl -H \"Authorization: token ${GITHUB_TOKEN}\" -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/releases/latest | jq -r '. | .tag_name' ''',\n           returnStdout: true).trim()\n       }\n     }\n    }\n    // If this is a stable or devel github release generate the link for the build message\n    stage(\"Set ENV github_link\"){\n     steps{\n       script{\n         env.RELEASE_LINK = 'https://github.com/' + env.EXT_USER + '/' + env.EXT_REPO + '/releases/tag/' + env.EXT_RELEASE\n       }\n     }\n    }\n    // Sanitize the release tag and strip illegal docker or github characters\n    stage(\"Sanitize tag\"){\n      steps{\n        script{\n          env.EXT_RELEASE_CLEAN = sh(\n            script: '''echo ${EXT_RELEASE} | sed 's/[~,%@+;:/ ]//g' ''',\n            returnStdout: true).trim()\n\n          def semver = env.EXT_RELEASE_CLEAN =~ /(\\d+)\\.(\\d+)\\.(\\d+)/\n          if (semver.find()) {\n            env.SEMVER = \"${semver[0][1]}.${semver[0][2]}.${semver[0][3]}\"\n          } else {\n            semver = env.EXT_RELEASE_CLEAN =~ /(\\d+)\\.(\\d+)(?:\\.(\\d+))?(.*)/\n            if (semver.find()) {\n              if (semver[0][3]) {\n                env.SEMVER = \"${semver[0][1]}.${semver[0][2]}.${semver[0][3]}\"\n              } else if (!semver[0][3] && !semver[0][4]) {\n                env.SEMVER = \"${semver[0][1]}.${semver[0][2]}.${(new Date()).format('YYYYMMdd')}\"\n              }\n            }\n          }\n\n          if (env.SEMVER != null) {\n            if (BRANCH_NAME != \"${env.GH_DEFAULT_BRANCH}\") {\n              env.SEMVER = \"${env.SEMVER}-${BRANCH_NAME}\"\n            }\n            println(\"SEMVER: ${env.SEMVER}\")\n          } else {\n            println(\"No SEMVER detected\")\n          }\n\n        }\n      }\n    }\n    // If this is a master build use live docker endpoints\n    stage(\"Set ENV live build\"){\n      when {\n        branch \"master\"\n        environment name: 'CHANGE_ID', value: ''\n      }\n      steps {\n        script{\n          env.IMAGE = env.DOCKERHUB_IMAGE\n          env.GITHUBIMAGE = 'ghcr.io/' + env.LS_USER + '/' + env.CONTAINER_NAME\n          env.GITLABIMAGE = 'registry.gitlab.com/linuxserver.io/' + env.LS_REPO + '/' + env.CONTAINER_NAME\n          env.QUAYIMAGE = 'quay.io/linuxserver.io/' + env.CONTAINER_NAME\n          if (env.MULTIARCH == 'true') {\n            env.CI_TAGS = 'amd64-' + env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER + '|arm64v8-' + env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER\n          } else {\n            env.CI_TAGS = env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER\n          }\n          env.VERSION_TAG = env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER\n          env.META_TAG = env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER\n          env.EXT_RELEASE_TAG = 'version-' + env.EXT_RELEASE_CLEAN\n          env.BUILDCACHE = 'docker.io/lsiodev/buildcache,registry.gitlab.com/linuxserver.io/docker-jenkins-builder/lsiodev-buildcache,ghcr.io/linuxserver/lsiodev-buildcache,quay.io/linuxserver.io/lsiodev-buildcache'\n          env.CITEST_IMAGETAG = 'latest'\n        }\n      }\n    }\n    // If this is a dev build use dev docker endpoints\n    stage(\"Set ENV dev build\"){\n      when {\n        not {branch \"master\"}\n        environment name: 'CHANGE_ID', value: ''\n      }\n      steps {\n        script{\n          env.IMAGE = env.DEV_DOCKERHUB_IMAGE\n          env.GITHUBIMAGE = 'ghcr.io/' + env.LS_USER + '/lsiodev-' + env.CONTAINER_NAME\n          env.GITLABIMAGE = 'registry.gitlab.com/linuxserver.io/' + env.LS_REPO + '/lsiodev-' + env.CONTAINER_NAME\n          env.QUAYIMAGE = 'quay.io/linuxserver.io/lsiodev-' + env.CONTAINER_NAME\n          if (env.MULTIARCH == 'true') {\n            env.CI_TAGS = 'amd64-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '|arm64v8-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA\n          } else {\n            env.CI_TAGS = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA\n          }\n          env.VERSION_TAG = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA\n          env.META_TAG = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA\n          env.EXT_RELEASE_TAG = 'version-' + env.EXT_RELEASE_CLEAN\n          env.DOCKERHUB_LINK = 'https://hub.docker.com/r/' + env.DEV_DOCKERHUB_IMAGE + '/tags/'\n          env.BUILDCACHE = 'docker.io/lsiodev/buildcache,registry.gitlab.com/linuxserver.io/docker-jenkins-builder/lsiodev-buildcache,ghcr.io/linuxserver/lsiodev-buildcache,quay.io/linuxserver.io/lsiodev-buildcache'\n          env.CITEST_IMAGETAG = 'develop'\n        }\n      }\n    }\n    // If this is a pull request build use dev docker endpoints\n    stage(\"Set ENV PR build\"){\n      when {\n        not {environment name: 'CHANGE_ID', value: ''}\n      }\n      steps {\n        script{\n          env.IMAGE = env.PR_DOCKERHUB_IMAGE\n          env.GITHUBIMAGE = 'ghcr.io/' + env.LS_USER + '/lspipepr-' + env.CONTAINER_NAME\n          env.GITLABIMAGE = 'registry.gitlab.com/linuxserver.io/' + env.LS_REPO + '/lspipepr-' + env.CONTAINER_NAME\n          env.QUAYIMAGE = 'quay.io/linuxserver.io/lspipepr-' + env.CONTAINER_NAME\n          if (env.MULTIARCH == 'true') {\n            env.CI_TAGS = 'amd64-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '-pr-' + env.PULL_REQUEST + '|arm64v8-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '-pr-' + env.PULL_REQUEST\n          } else {\n            env.CI_TAGS = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '-pr-' + env.PULL_REQUEST\n          }\n          env.VERSION_TAG = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '-pr-' + env.PULL_REQUEST\n          env.META_TAG = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '-pr-' + env.PULL_REQUEST\n          env.EXT_RELEASE_TAG = 'version-' + env.EXT_RELEASE_CLEAN\n          env.CODE_URL = 'https://github.com/' + env.LS_USER + '/' + env.LS_REPO + '/pull/' + env.PULL_REQUEST\n          env.DOCKERHUB_LINK = 'https://hub.docker.com/r/' + env.PR_DOCKERHUB_IMAGE + '/tags/'\n          env.BUILDCACHE = 'docker.io/lsiodev/buildcache,registry.gitlab.com/linuxserver.io/docker-jenkins-builder/lsiodev-buildcache,ghcr.io/linuxserver/lsiodev-buildcache,quay.io/linuxserver.io/lsiodev-buildcache'\n          env.CITEST_IMAGETAG = 'develop'\n        }\n      }\n    }\n    // Run ShellCheck\n    stage('ShellCheck') {\n      when {\n        environment name: 'CI', value: 'true'\n      }\n      steps {\n        withCredentials([\n          string(credentialsId: 'ci-tests-s3-key-id', variable: 'S3_KEY'),\n          string(credentialsId: 'ci-tests-s3-secret-access-key', variable: 'S3_SECRET')\n        ]) {\n          script{\n            env.SHELLCHECK_URL = 'https://ci-tests.linuxserver.io/' + env.IMAGE + '/' + env.META_TAG + '/shellcheck-result.xml'\n          }\n          sh '''curl -sL https://raw.githubusercontent.com/linuxserver/docker-jenkins-builder/master/checkrun.sh | /bin/bash'''\n          sh '''#! /bin/bash\n                docker run --rm \\\n                  -v ${WORKSPACE}:/mnt \\\n                  -e AWS_ACCESS_KEY_ID=\\\"${S3_KEY}\\\" \\\n                  -e AWS_SECRET_ACCESS_KEY=\\\"${S3_SECRET}\\\" \\\n                  ghcr.io/linuxserver/baseimage-alpine:3.23 s6-envdir -fn -- /var/run/s6/container_environment /bin/bash -c \"\\\n                    apk add --no-cache python3 && \\\n                    python3 -m venv /lsiopy && \\\n                    pip install --no-cache-dir -U pip && \\\n                    pip install --no-cache-dir s3cmd && \\\n                    s3cmd put --no-preserve --acl-public -m text/xml /mnt/shellcheck-result.xml s3://ci-tests.linuxserver.io/${IMAGE}/${META_TAG}/shellcheck-result.xml\" || :'''\n        }\n      }\n    }\n    // Use helper containers to render templated files\n    stage('Update-Templates') {\n      when {\n        branch \"master\"\n        environment name: 'CHANGE_ID', value: ''\n        expression {\n          env.CONTAINER_NAME != null\n        }\n      }\n      steps {\n        sh '''#! /bin/bash\n              set -e\n              TEMPDIR=$(mktemp -d)\n              docker pull ghcr.io/linuxserver/jenkins-builder:latest\n              # Cloned repo paths for templating:\n              # ${TEMPDIR}/docker-${CONTAINER_NAME}: Cloned branch master of ${LS_USER}/${LS_REPO} for running the jenkins builder on\n              # ${TEMPDIR}/repo/${LS_REPO}: Cloned branch master of ${LS_USER}/${LS_REPO} for commiting various templated file changes and pushing back to Github\n              # ${TEMPDIR}/docs/docker-documentation: Cloned docs repo for pushing docs updates to Github\n              # ${TEMPDIR}/unraid/docker-templates: Cloned docker-templates repo to check for logos\n              # ${TEMPDIR}/unraid/templates: Cloned templates repo for commiting unraid template changes and pushing back to Github\n              git clone --branch master --depth 1 https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/docker-${CONTAINER_NAME}\n              docker run --rm -v ${TEMPDIR}/docker-${CONTAINER_NAME}:/tmp -e LOCAL=true -e PUID=$(id -u) -e PGID=$(id -g) ghcr.io/linuxserver/jenkins-builder:latest \n              echo \"Starting Stage 1 - Jenkinsfile update\"\n              if [[ \"$(md5sum Jenkinsfile | awk '{ print $1 }')\" != \"$(md5sum ${TEMPDIR}/docker-${CONTAINER_NAME}/Jenkinsfile | awk '{ print $1 }')\" ]]; then\n                mkdir -p ${TEMPDIR}/repo\n                git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/repo/${LS_REPO}\n                cd ${TEMPDIR}/repo/${LS_REPO}\n                git checkout -f master\n                cp ${TEMPDIR}/docker-${CONTAINER_NAME}/Jenkinsfile ${TEMPDIR}/repo/${LS_REPO}/\n                git add Jenkinsfile\n                git commit -m 'Bot Updating Templated Files'\n                git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git master\n                git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git master\n                echo \"true\" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}\n                echo \"Updating Jenkinsfile and exiting build, new one will trigger based on commit\"\n                rm -Rf ${TEMPDIR}\n                exit 0\n              else\n                echo \"Jenkinsfile is up to date.\"\n              fi\n              echo \"Starting Stage 2 - Delete old templates\"\n              OLD_TEMPLATES=\".github/ISSUE_TEMPLATE.md .github/ISSUE_TEMPLATE/issue.bug.md .github/ISSUE_TEMPLATE/issue.feature.md .github/workflows/call_invalid_helper.yml .github/workflows/stale.yml .github/workflows/package_trigger.yml\"\n              for i in ${OLD_TEMPLATES}; do\n                if [[ -f \"${i}\" ]]; then\n                  TEMPLATES_TO_DELETE=\"${i} ${TEMPLATES_TO_DELETE}\"\n                fi\n              done\n              if [[ -n \"${TEMPLATES_TO_DELETE}\" ]]; then\n                mkdir -p ${TEMPDIR}/repo\n                git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/repo/${LS_REPO}\n                cd ${TEMPDIR}/repo/${LS_REPO}\n                git checkout -f master\n                for i in ${TEMPLATES_TO_DELETE}; do\n                  git rm \"${i}\"\n                done\n                git commit -m 'Bot Updating Templated Files'\n                git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git master\n                git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git master\n                echo \"true\" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}\n                echo \"Deleting old/deprecated templates and exiting build, new one will trigger based on commit\"\n                rm -Rf ${TEMPDIR}\n                exit 0\n              else\n                echo \"No templates to delete\"\n              fi\n              echo \"Starting Stage 2.5 - Update init diagram\"\n              if ! grep -q 'init_diagram:' readme-vars.yml; then\n                echo \"Adding the key 'init_diagram' to readme-vars.yml\"\n                sed -i '\\\\|^#.*changelog.*$|d' readme-vars.yml\n                sed -i 's|^changelogs:|# init diagram\\\\ninit_diagram:\\\\n\\\\n# changelog\\\\nchangelogs:|' readme-vars.yml\n              fi\n              mkdir -p ${TEMPDIR}/d2\n              docker run --rm -v ${TEMPDIR}/d2:/output -e PUID=$(id -u) -e PGID=$(id -g) -e RAW=\"true\" ghcr.io/linuxserver/d2-builder:latest ${CONTAINER_NAME}:latest\n              ls -al ${TEMPDIR}/d2\n              yq -ei \".init_diagram |= load_str(\\\\\"${TEMPDIR}/d2/${CONTAINER_NAME}-latest.d2\\\\\")\" readme-vars.yml\n              if [[ $(md5sum readme-vars.yml | cut -c1-8) != $(md5sum ${TEMPDIR}/docker-${CONTAINER_NAME}/readme-vars.yml | cut -c1-8) ]]; then\n                echo \"'init_diagram' has been updated. Updating repo and exiting build, new one will trigger based on commit.\"\n                mkdir -p ${TEMPDIR}/repo\n                git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/repo/${LS_REPO}\n                cd ${TEMPDIR}/repo/${LS_REPO}\n                git checkout -f master\n                cp ${WORKSPACE}/readme-vars.yml ${TEMPDIR}/repo/${LS_REPO}/readme-vars.yml\n                git add readme-vars.yml\n                git commit -m 'Bot Updating Templated Files'\n                git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git master\n                git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git master\n                echo \"true\" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}\n                echo \"Updating templates and exiting build, new one will trigger based on commit\"\n                rm -Rf ${TEMPDIR}\n                exit 0\n              else\n                echo \"false\" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}\n                echo \"Init diagram is unchanged\"\n              fi\n              echo \"Starting Stage 3 - Update templates\"\n              CURRENTHASH=$(grep -hs ^ ${TEMPLATED_FILES} | md5sum | cut -c1-8)\n              cd ${TEMPDIR}/docker-${CONTAINER_NAME}\n              NEWHASH=$(grep -hs ^ ${TEMPLATED_FILES} | md5sum | cut -c1-8)\n              if [[ \"${CURRENTHASH}\" != \"${NEWHASH}\" ]] || ! grep -q '.jenkins-external' \"${WORKSPACE}/.gitignore\" 2>/dev/null; then\n                mkdir -p ${TEMPDIR}/repo\n                git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/repo/${LS_REPO}\n                cd ${TEMPDIR}/repo/${LS_REPO}\n                git checkout -f master\n                cd ${TEMPDIR}/docker-${CONTAINER_NAME}\n                mkdir -p ${TEMPDIR}/repo/${LS_REPO}/.github/workflows\n                mkdir -p ${TEMPDIR}/repo/${LS_REPO}/.github/ISSUE_TEMPLATE\n                cp --parents ${TEMPLATED_FILES} ${TEMPDIR}/repo/${LS_REPO}/ || :\n                cp --parents readme-vars.yml ${TEMPDIR}/repo/${LS_REPO}/ || :\n                cd ${TEMPDIR}/repo/${LS_REPO}/\n                if ! grep -q '.jenkins-external' .gitignore 2>/dev/null; then\n                  echo \".jenkins-external\" >> .gitignore\n                  git add .gitignore\n                fi\n                git add readme-vars.yml ${TEMPLATED_FILES}\n                git commit -m 'Bot Updating Templated Files'\n                git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git master\n                git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git master\n                echo \"true\" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}\n                echo \"Updating templates and exiting build, new one will trigger based on commit\"\n                rm -Rf ${TEMPDIR}\n                exit 0\n              else\n                echo \"false\" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}\n                echo \"No templates to update\"\n              fi\n              echo \"Starting Stage 4 - External repo updates: Docs, Unraid Template and Readme Sync to Docker Hub\"\n              mkdir -p ${TEMPDIR}/docs\n              git clone --depth=1 https://github.com/linuxserver/docker-documentation.git ${TEMPDIR}/docs/docker-documentation\n              if [[ \"${BRANCH_NAME}\" == \"${GH_DEFAULT_BRANCH}\"  ]] && [[ (! -f ${TEMPDIR}/docs/docker-documentation/docs/images/docker-${CONTAINER_NAME}.md) || (\"$(md5sum ${TEMPDIR}/docs/docker-documentation/docs/images/docker-${CONTAINER_NAME}.md | awk '{ print $1 }')\" != \"$(md5sum ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/docker-${CONTAINER_NAME}.md | awk '{ print $1 }')\") ]]; then\n                cp ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/docker-${CONTAINER_NAME}.md ${TEMPDIR}/docs/docker-documentation/docs/images/\n                cd ${TEMPDIR}/docs/docker-documentation\n                GH_DOCS_DEFAULT_BRANCH=$(git remote show origin | grep \"HEAD branch:\" | sed 's|.*HEAD branch: ||')\n                git add docs/images/docker-${CONTAINER_NAME}.md\n                echo \"Updating docs repo\"\n                git commit -m 'Bot Updating Documentation'\n                git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/linuxserver/docker-documentation.git ${GH_DOCS_DEFAULT_BRANCH} --rebase\n                git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/linuxserver/docker-documentation.git ${GH_DOCS_DEFAULT_BRANCH} || \\\n                  (MAXWAIT=\"10\" && echo \"Push to docs failed, trying again in ${MAXWAIT} seconds\" && \\\n                  sleep $((RANDOM % MAXWAIT)) && \\\n                  git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/linuxserver/docker-documentation.git ${GH_DOCS_DEFAULT_BRANCH} --rebase && \\\n                  git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/linuxserver/docker-documentation.git ${GH_DOCS_DEFAULT_BRANCH})\n              else\n                echo \"Docs update not needed, skipping\"\n              fi\n              mkdir -p ${TEMPDIR}/unraid\n              git clone --depth=1 https://github.com/linuxserver/docker-templates.git ${TEMPDIR}/unraid/docker-templates\n              git clone --depth=1 https://github.com/linuxserver/templates.git ${TEMPDIR}/unraid/templates\n              if [[ -f ${TEMPDIR}/unraid/docker-templates/linuxserver.io/img/${CONTAINER_NAME}-logo.png ]]; then\n                sed -i \"s|master/linuxserver.io/img/linuxserver-ls-logo.png|master/linuxserver.io/img/${CONTAINER_NAME}-logo.png|\" ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml\n              elif [[ -f ${TEMPDIR}/unraid/docker-templates/linuxserver.io/img/${CONTAINER_NAME}-icon.png ]]; then\n                sed -i \"s|master/linuxserver.io/img/linuxserver-ls-logo.png|master/linuxserver.io/img/${CONTAINER_NAME}-icon.png|\" ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml\n              fi\n              if [[ \"${BRANCH_NAME}\" == \"${GH_DEFAULT_BRANCH}\" ]] && [[ (! -f ${TEMPDIR}/unraid/templates/unraid/${CONTAINER_NAME}.xml) || (\"$(md5sum ${TEMPDIR}/unraid/templates/unraid/${CONTAINER_NAME}.xml | awk '{ print $1 }')\" != \"$(md5sum ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml | awk '{ print $1 }')\") ]]; then\n                echo \"Updating Unraid template\"\n                cd ${TEMPDIR}/unraid/templates/\n                GH_TEMPLATES_DEFAULT_BRANCH=$(git remote show origin | grep \"HEAD branch:\" | sed 's|.*HEAD branch: ||')\n                if grep -wq \"^${CONTAINER_NAME}$\" ${TEMPDIR}/unraid/templates/unraid/ignore.list && [[ -f ${TEMPDIR}/unraid/templates/unraid/deprecated/${CONTAINER_NAME}.xml ]]; then\n                  echo \"Image is on the ignore list, and already in the deprecation folder.\"\n                elif grep -wq \"^${CONTAINER_NAME}$\" ${TEMPDIR}/unraid/templates/unraid/ignore.list; then\n                  echo \"Image is on the ignore list, marking Unraid template as deprecated\"\n                  cp ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml ${TEMPDIR}/unraid/templates/unraid/\n                  git add -u unraid/${CONTAINER_NAME}.xml\n                  git mv unraid/${CONTAINER_NAME}.xml unraid/deprecated/${CONTAINER_NAME}.xml || :\n                  git commit -m 'Bot Moving Deprecated Unraid Template' || :\n                else\n                  cp ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml ${TEMPDIR}/unraid/templates/unraid/\n                  git add unraid/${CONTAINER_NAME}.xml\n                  git commit -m 'Bot Updating Unraid Template'\n                fi\n                git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/linuxserver/templates.git ${GH_TEMPLATES_DEFAULT_BRANCH} --rebase\n                git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/linuxserver/templates.git ${GH_TEMPLATES_DEFAULT_BRANCH} || \\\n                  (MAXWAIT=\"10\" && echo \"Push to unraid templates failed, trying again in ${MAXWAIT} seconds\" && \\\n                  sleep $((RANDOM % MAXWAIT)) && \\\n                  git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/linuxserver/templates.git ${GH_TEMPLATES_DEFAULT_BRANCH} --rebase && \\\n                  git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/linuxserver/templates.git ${GH_TEMPLATES_DEFAULT_BRANCH})\n              else\n                echo \"No updates to Unraid template needed, skipping\"\n              fi\n              if [[ \"${BRANCH_NAME}\" == \"${GH_DEFAULT_BRANCH}\" ]]; then\n                if [[ $(cat ${TEMPDIR}/docker-${CONTAINER_NAME}/README.md | wc -m) -gt 25000 ]]; then\n                  echo \"Readme is longer than 25,000 characters. Syncing the lite version to Docker Hub\"\n                  DH_README_SYNC_PATH=\"${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/README.lite\"\n                else\n                  echo \"Syncing readme to Docker Hub\"\n                  DH_README_SYNC_PATH=\"${TEMPDIR}/docker-${CONTAINER_NAME}/README.md\"\n                fi\n                if curl -s https://hub.docker.com/v2/namespaces/${DOCKERHUB_IMAGE%%/*}/repositories/${DOCKERHUB_IMAGE##*/}/tags | jq -r '.message' | grep -q 404; then\n                  echo \"Docker Hub endpoint doesn't exist. Creating endpoint first.\"\n                  DH_TOKEN=$(curl -d '{\"username\":\"linuxserverci\", \"password\":\"'${DOCKERHUB_TOKEN}'\"}' -H \"Content-Type: application/json\" -X POST https://hub.docker.com/v2/users/login | jq -r '.token')\n                  curl -s \\\n                    -H \"Authorization: JWT ${DH_TOKEN}\" \\\n                    -H \"Content-Type: application/json\" \\\n                    -X POST \\\n                    -d '{\"name\":\"'${DOCKERHUB_IMAGE##*/}'\", \"namespace\":\"'${DOCKERHUB_IMAGE%%/*}'\"}' \\\n                    https://hub.docker.com/v2/repositories/ || :\n                fi\n                DH_TOKEN=$(curl -d '{\"username\":\"linuxserverci\", \"password\":\"'${DOCKERHUB_TOKEN}'\"}' -H \"Content-Type: application/json\" -X POST https://hub.docker.com/v2/users/login | jq -r '.token')\n                curl -s \\\n                  -H \"Authorization: JWT ${DH_TOKEN}\" \\\n                  -H \"Content-Type: application/json\" \\\n                  -X PATCH \\\n                  -d \"{\\\\\"full_description\\\\\":$(jq -Rsa . ${DH_README_SYNC_PATH})}\" \\\n                  https://hub.docker.com/v2/repositories/${DOCKERHUB_IMAGE} || :\n              else\n                echo \"Not the default Github branch. Skipping readme sync to Docker Hub.\"\n              fi\n              rm -Rf ${TEMPDIR}'''\n        script{\n          env.FILES_UPDATED = sh(\n            script: '''cat /tmp/${COMMIT_SHA}-${BUILD_NUMBER}''',\n            returnStdout: true).trim()\n        }\n      }\n    }\n    // Exit the build if the Templated files were just updated\n    stage('Template-exit') {\n      when {\n        branch \"master\"\n        environment name: 'CHANGE_ID', value: ''\n        environment name: 'FILES_UPDATED', value: 'true'\n        expression {\n          env.CONTAINER_NAME != null\n        }\n      }\n      steps {\n        script{\n          env.EXIT_STATUS = 'ABORTED'\n        }\n      }\n    }\n    // If this is a master build check the S6 service file perms\n    stage(\"Check S6 Service file Permissions\"){\n      when {\n        branch \"master\"\n        environment name: 'CHANGE_ID', value: ''\n        environment name: 'EXIT_STATUS', value: ''\n      }\n      steps {\n        script{\n          sh '''#! /bin/bash\n            WRONG_PERM=$(find ./  -path \"./.git\" -prune -o \\\\( -name \"run\" -o -name \"finish\" -o -name \"check\" \\\\) -not -perm -u=x,g=x,o=x -print)\n            if [[ -n \"${WRONG_PERM}\" ]]; then\n              echo \"The following S6 service files are missing the executable bit; canceling the faulty build: ${WRONG_PERM}\"\n              exit 1\n            else\n              echo \"S6 service file perms look good.\"\n            fi '''\n        }\n      }\n    }\n    /* #######################\n       GitLab Mirroring and Quay.io Repo Visibility\n       ####################### */\n    // Ping into Gitlab to mirror this repo and have a registry endpoint & mark this repo on Quay.io as public\n    stage(\"GitLab Mirror and Quay.io Visibility\"){\n      when {\n        environment name: 'EXIT_STATUS', value: ''\n      }\n      steps{\n        sh '''curl -H \"Content-Type: application/json\" -H \"Private-Token: ${GITLAB_TOKEN}\" -X POST https://gitlab.com/api/v4/projects \\\n          -d '{\"namespace_id\":'${GITLAB_NAMESPACE}',\\\n            \"name\":\"'${LS_REPO}'\",\n            \"mirror\":true,\\\n            \"import_url\":\"https://github.com/linuxserver/'${LS_REPO}'.git\",\\\n            \"issues_access_level\":\"disabled\",\\\n            \"merge_requests_access_level\":\"disabled\",\\\n            \"repository_access_level\":\"enabled\",\\\n            \"visibility\":\"public\"}' '''\n        sh '''curl -H \"Private-Token: ${GITLAB_TOKEN}\" -X PUT \"https://gitlab.com/api/v4/projects/Linuxserver.io%2F${LS_REPO}\" \\\n          -d \"mirror=true&import_url=https://github.com/linuxserver/${LS_REPO}.git\" '''\n        sh '''curl -H \"Content-Type: application/json\" -H \"Authorization: Bearer ${QUAYIO_API_TOKEN}\" -X POST \"https://quay.io/api/v1/repository${QUAYIMAGE/quay.io/}/changevisibility\" \\\n          -d '{\"visibility\":\"public\"}' ||: '''\n      } \n    }\n    /* ###############\n       Build Container\n       ############### */\n    // Build Docker container for push to LS Repo\n    stage('Build-Single') {\n      when {\n        expression {\n          env.MULTIARCH == 'false' || params.PACKAGE_CHECK == 'true'\n        }\n        environment name: 'EXIT_STATUS', value: ''\n      }\n      steps {\n        echo \"Running on node: ${NODE_NAME}\"\n        sh \"sed -r -i 's|(^FROM .*)|\\\\1\\\\n\\\\nENV LSIO_FIRST_PARTY=true|g' Dockerfile\"\n        sh \"docker buildx build \\\n          --label \\\"org.opencontainers.image.created=${GITHUB_DATE}\\\" \\\n          --label \\\"org.opencontainers.image.authors=linuxserver.io\\\" \\\n          --label \\\"org.opencontainers.image.url=https://github.com/linuxserver/docker-ombi/packages\\\" \\\n          --label \\\"org.opencontainers.image.documentation=https://docs.linuxserver.io/images/docker-ombi\\\" \\\n          --label \\\"org.opencontainers.image.source=https://github.com/linuxserver/docker-ombi\\\" \\\n          --label \\\"org.opencontainers.image.version=${EXT_RELEASE_CLEAN}-ls${LS_TAG_NUMBER}\\\" \\\n          --label \\\"org.opencontainers.image.revision=${COMMIT_SHA}\\\" \\\n          --label \\\"org.opencontainers.image.vendor=linuxserver.io\\\" \\\n          --label \\\"org.opencontainers.image.licenses=GPL-3.0-only\\\" \\\n          --label \\\"org.opencontainers.image.ref.name=${COMMIT_SHA}\\\" \\\n          --label \\\"org.opencontainers.image.title=Ombi\\\" \\\n          --label \\\"org.opencontainers.image.description=[Ombi](https://ombi.io) allows you to host your own Plex Request and user management system.  If you are sharing your Plex server with other users, allow them to request new content using an easy to manage interface!  Manage all your requests for Movies and TV with ease, leave notes for the user and get notification when a user requests something.  Allow your users to post issues against their requests so you know there is a problem with the audio etc.  Even automatically send them weekly newsletters of new content that has been added to your Plex server!\\\" \\\n          --no-cache --pull -t ${IMAGE}:${META_TAG} --platform=linux/amd64 \\\n          --provenance=true --sbom=true --builder=container --load \\\n          --build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\\\"${VERSION_TAG}\\\" --build-arg BUILD_DATE=${GITHUB_DATE} .\"\n        sh '''#! /bin/bash\n              set -e\n              IFS=',' read -ra CACHE <<< \"$BUILDCACHE\"\n              for i in \"${CACHE[@]}\"; do\n                docker tag ${IMAGE}:${META_TAG} ${i}:amd64-${COMMIT_SHA}-${BUILD_NUMBER}\n              done\n           '''\n        withCredentials([\n          [\n            $class: 'UsernamePasswordMultiBinding',\n            credentialsId: 'Quay.io-Robot',\n            usernameVariable: 'QUAYUSER',\n            passwordVariable: 'QUAYPASS'\n          ]\n        ]) {\n          retry_backoff(5,5) {\n              sh '''#! /bin/bash\n                    set -e\n                    echo $DOCKERHUB_TOKEN | docker login -u linuxserverci --password-stdin\n                    echo $GITHUB_TOKEN | docker login ghcr.io -u LinuxServer-CI --password-stdin\n                    echo $GITLAB_TOKEN | docker login registry.gitlab.com -u LinuxServer.io --password-stdin\n                    echo $QUAYPASS | docker login quay.io -u $QUAYUSER --password-stdin\n\n                    if [[ \"${PACKAGE_CHECK}\" != \"true\" ]]; then\n                      declare -A pids\n                      IFS=',' read -ra CACHE <<< \"$BUILDCACHE\"\n                      for i in \"${CACHE[@]}\"; do\n                        docker push ${i}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} &\n                        pids[$!]=\"$i\"\n                      done\n                      for p in \"${!pids[@]}\"; do\n                        wait \"$p\" || { [[ \"${pids[$p]}\" != *\"quay.io\"* ]] && exit 1; }\n                      done\n                    fi\n                '''\n          }\n        }\n      }\n    }\n    // Build MultiArch Docker containers for push to LS Repo\n    stage('Build-Multi') {\n      when {\n        allOf {\n          environment name: 'MULTIARCH', value: 'true'\n          expression { params.PACKAGE_CHECK == 'false' }\n        }\n        environment name: 'EXIT_STATUS', value: ''\n      }\n      parallel {\n        stage('Build X86') {\n          steps {\n            echo \"Running on node: ${NODE_NAME}\"\n            sh \"sed -r -i 's|(^FROM .*)|\\\\1\\\\n\\\\nENV LSIO_FIRST_PARTY=true|g' Dockerfile\"\n            sh \"docker buildx build \\\n              --label \\\"org.opencontainers.image.created=${GITHUB_DATE}\\\" \\\n              --label \\\"org.opencontainers.image.authors=linuxserver.io\\\" \\\n              --label \\\"org.opencontainers.image.url=https://github.com/linuxserver/docker-ombi/packages\\\" \\\n              --label \\\"org.opencontainers.image.documentation=https://docs.linuxserver.io/images/docker-ombi\\\" \\\n              --label \\\"org.opencontainers.image.source=https://github.com/linuxserver/docker-ombi\\\" \\\n              --label \\\"org.opencontainers.image.version=${EXT_RELEASE_CLEAN}-ls${LS_TAG_NUMBER}\\\" \\\n              --label \\\"org.opencontainers.image.revision=${COMMIT_SHA}\\\" \\\n              --label \\\"org.opencontainers.image.vendor=linuxserver.io\\\" \\\n              --label \\\"org.opencontainers.image.licenses=GPL-3.0-only\\\" \\\n              --label \\\"org.opencontainers.image.ref.name=${COMMIT_SHA}\\\" \\\n              --label \\\"org.opencontainers.image.title=Ombi\\\" \\\n              --label \\\"org.opencontainers.image.description=[Ombi](https://ombi.io) allows you to host your own Plex Request and user management system.  If you are sharing your Plex server with other users, allow them to request new content using an easy to manage interface!  Manage all your requests for Movies and TV with ease, leave notes for the user and get notification when a user requests something.  Allow your users to post issues against their requests so you know there is a problem with the audio etc.  Even automatically send them weekly newsletters of new content that has been added to your Plex server!\\\" \\\n              --no-cache --pull -t ${IMAGE}:amd64-${META_TAG} --platform=linux/amd64 \\\n              --provenance=true --sbom=true --builder=container --load \\\n              --build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\\\"${VERSION_TAG}\\\" --build-arg BUILD_DATE=${GITHUB_DATE} .\"\n            sh '''#! /bin/bash\n                  set -e\n                  IFS=',' read -ra CACHE <<< \"$BUILDCACHE\"\n                  for i in \"${CACHE[@]}\"; do\n                    docker tag ${IMAGE}:amd64-${META_TAG} ${i}:amd64-${COMMIT_SHA}-${BUILD_NUMBER}\n                  done\n               '''\n            withCredentials([\n              [\n                $class: 'UsernamePasswordMultiBinding',\n                credentialsId: 'Quay.io-Robot',\n                usernameVariable: 'QUAYUSER',\n                passwordVariable: 'QUAYPASS'\n              ]\n            ]) {\n              retry_backoff(5,5) {\n                  sh '''#! /bin/bash\n                        set -e\n                        echo $DOCKERHUB_TOKEN | docker login -u linuxserverci --password-stdin\n                        echo $GITHUB_TOKEN | docker login ghcr.io -u LinuxServer-CI --password-stdin\n                        echo $GITLAB_TOKEN | docker login registry.gitlab.com -u LinuxServer.io --password-stdin\n                        echo $QUAYPASS | docker login quay.io -u $QUAYUSER --password-stdin\n\n                        if [[ \"${PACKAGE_CHECK}\" != \"true\" ]]; then\n                          declare -A pids\n                          IFS=',' read -ra CACHE <<< \"$BUILDCACHE\"\n                          for i in \"${CACHE[@]}\"; do\n                            docker push ${i}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} &\n                            pids[$!]=\"$i\"\n                          done\n                          for p in \"${!pids[@]}\"; do\n                            wait \"$p\" || { [[ \"${pids[$p]}\" != *\"quay.io\"* ]] && exit 1; }\n                          done\n                        fi\n                    '''\n              }\n            }\n          }\n        }\n        stage('Build ARM64') {\n          agent {\n            label 'ARM64'\n          }\n          steps {\n            echo \"Running on node: ${NODE_NAME}\"\n            sh \"sed -r -i 's|(^FROM .*)|\\\\1\\\\n\\\\nENV LSIO_FIRST_PARTY=true|g' Dockerfile.aarch64\"\n            sh \"docker buildx build \\\n              --label \\\"org.opencontainers.image.created=${GITHUB_DATE}\\\" \\\n              --label \\\"org.opencontainers.image.authors=linuxserver.io\\\" \\\n              --label \\\"org.opencontainers.image.url=https://github.com/linuxserver/docker-ombi/packages\\\" \\\n              --label \\\"org.opencontainers.image.documentation=https://docs.linuxserver.io/images/docker-ombi\\\" \\\n              --label \\\"org.opencontainers.image.source=https://github.com/linuxserver/docker-ombi\\\" \\\n              --label \\\"org.opencontainers.image.version=${EXT_RELEASE_CLEAN}-ls${LS_TAG_NUMBER}\\\" \\\n              --label \\\"org.opencontainers.image.revision=${COMMIT_SHA}\\\" \\\n              --label \\\"org.opencontainers.image.vendor=linuxserver.io\\\" \\\n              --label \\\"org.opencontainers.image.licenses=GPL-3.0-only\\\" \\\n              --label \\\"org.opencontainers.image.ref.name=${COMMIT_SHA}\\\" \\\n              --label \\\"org.opencontainers.image.title=Ombi\\\" \\\n              --label \\\"org.opencontainers.image.description=[Ombi](https://ombi.io) allows you to host your own Plex Request and user management system.  If you are sharing your Plex server with other users, allow them to request new content using an easy to manage interface!  Manage all your requests for Movies and TV with ease, leave notes for the user and get notification when a user requests something.  Allow your users to post issues against their requests so you know there is a problem with the audio etc.  Even automatically send them weekly newsletters of new content that has been added to your Plex server!\\\" \\\n              --no-cache --pull -f Dockerfile.aarch64 -t ${IMAGE}:arm64v8-${META_TAG} --platform=linux/arm64 \\\n              --provenance=true --sbom=true --builder=container --load \\\n              --build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\\\"${VERSION_TAG}\\\" --build-arg BUILD_DATE=${GITHUB_DATE} .\"\n            sh '''#! /bin/bash\n                  set -e\n                  IFS=',' read -ra CACHE <<< \"$BUILDCACHE\"\n                  for i in \"${CACHE[@]}\"; do\n                    docker tag ${IMAGE}:arm64v8-${META_TAG} ${i}:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER}\n                  done\n               '''\n            withCredentials([\n              [\n                $class: 'UsernamePasswordMultiBinding',\n                credentialsId: 'Quay.io-Robot',\n                usernameVariable: 'QUAYUSER',\n                passwordVariable: 'QUAYPASS'\n              ]\n            ]) {\n              retry_backoff(5,5) {\n                  sh '''#! /bin/bash\n                        set -e\n                        echo $DOCKERHUB_TOKEN | docker login -u linuxserverci --password-stdin\n                        echo $GITHUB_TOKEN | docker login ghcr.io -u LinuxServer-CI --password-stdin\n                        echo $GITLAB_TOKEN | docker login registry.gitlab.com -u LinuxServer.io --password-stdin\n                        echo $QUAYPASS | docker login quay.io -u $QUAYUSER --password-stdin\n                        if [[ \"${PACKAGE_CHECK}\" != \"true\" ]]; then\n                          declare -A pids\n                          IFS=',' read -ra CACHE <<< \"$BUILDCACHE\"\n                          for i in \"${CACHE[@]}\"; do\n                            docker push ${i}:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} &\n                            pids[$!]=\"$i\"\n                          done\n                          for p in \"${!pids[@]}\"; do\n                            wait \"$p\" || { [[ \"${pids[$p]}\" != *\"quay.io\"* ]] && exit 1; }\n                          done\n                        fi\n                    '''\n              }\n            }\n            sh '''#! /bin/bash\n                  containers=$(docker ps -aq)\n                  if [[ -n \"${containers}\" ]]; then\n                    docker stop ${containers}\n                  fi\n                  docker system prune -f --volumes || :\n                  docker image prune -af || :\n               '''\n          }\n        }\n      }\n    }\n    // Take the image we just built and dump package versions for comparison\n    stage('Update-packages') {\n      when {\n        branch \"master\"\n        environment name: 'CHANGE_ID', value: ''\n        environment name: 'EXIT_STATUS', value: ''\n      }\n      steps {\n        sh '''#! /bin/bash\n              set -e\n              TEMPDIR=$(mktemp -d)\n              if [ \"${MULTIARCH}\" == \"true\" ] && [ \"${PACKAGE_CHECK}\" != \"true\" ]; then\n                LOCAL_CONTAINER=${IMAGE}:amd64-${META_TAG}\n              else\n                LOCAL_CONTAINER=${IMAGE}:${META_TAG}\n              fi\n              touch ${TEMPDIR}/package_versions.txt\n              docker run --rm \\\n                -v /var/run/docker.sock:/var/run/docker.sock:ro \\\n                -v ${TEMPDIR}:/tmp \\\n                ghcr.io/anchore/syft:${SYFT_IMAGE_TAG} \\\n                ${LOCAL_CONTAINER} -o table=/tmp/package_versions.txt\n              NEW_PACKAGE_TAG=$(md5sum ${TEMPDIR}/package_versions.txt | cut -c1-8 )\n              echo \"Package tag sha from current packages in buit container is ${NEW_PACKAGE_TAG} comparing to old ${PACKAGE_TAG} from github\"\n              if [ \"${NEW_PACKAGE_TAG}\" != \"${PACKAGE_TAG}\" ]; then\n                git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/${LS_REPO}\n                git --git-dir ${TEMPDIR}/${LS_REPO}/.git checkout -f master\n                cp ${TEMPDIR}/package_versions.txt ${TEMPDIR}/${LS_REPO}/\n                cd ${TEMPDIR}/${LS_REPO}/\n                wait\n                git add package_versions.txt\n                git commit -m 'Bot Updating Package Versions'\n                git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git master\n                git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git master\n                echo \"true\" > /tmp/packages-${COMMIT_SHA}-${BUILD_NUMBER}\n                echo \"Package tag updated, stopping build process\"\n              else\n                echo \"false\" > /tmp/packages-${COMMIT_SHA}-${BUILD_NUMBER}\n                echo \"Package tag is same as previous continue with build process\"\n              fi\n              rm -Rf ${TEMPDIR}'''\n        script{\n          env.PACKAGE_UPDATED = sh(\n            script: '''cat /tmp/packages-${COMMIT_SHA}-${BUILD_NUMBER}''',\n            returnStdout: true).trim()\n        }\n      }\n    }\n    // Exit the build if the package file was just updated\n    stage('PACKAGE-exit') {\n      when {\n        branch \"master\"\n        environment name: 'CHANGE_ID', value: ''\n        environment name: 'PACKAGE_UPDATED', value: 'true'\n        environment name: 'EXIT_STATUS', value: ''\n      }\n      steps {\n        script{\n          env.EXIT_STATUS = 'ABORTED'\n        }\n      }\n    }\n    // Exit the build if this is just a package check and there are no changes to push\n    stage('PACKAGECHECK-exit') {\n      when {\n        branch \"master\"\n        environment name: 'CHANGE_ID', value: ''\n        environment name: 'PACKAGE_UPDATED', value: 'false'\n        environment name: 'EXIT_STATUS', value: ''\n        expression {\n          params.PACKAGE_CHECK == 'true'\n        }\n      }\n      steps {\n        script{\n          env.EXIT_STATUS = 'ABORTED'\n        }\n      }\n    }\n    /* #######\n       Testing\n       ####### */\n    // Run Container tests\n    stage('Test') {\n      when {\n        environment name: 'CI', value: 'true'\n        environment name: 'EXIT_STATUS', value: ''\n      }\n      steps {\n        withCredentials([\n          string(credentialsId: 'ci-tests-s3-key-id', variable: 'S3_KEY'),\n          string(credentialsId: 'ci-tests-s3-secret-access-key\t', variable: 'S3_SECRET')\n        ]) {\n          script{\n            env.CI_URL = 'https://ci-tests.linuxserver.io/' + env.IMAGE + '/' + env.META_TAG + '/index.html'\n            env.CI_JSON_URL = 'https://ci-tests.linuxserver.io/' + env.IMAGE + '/' + env.META_TAG + '/report.json'\n            env.CI_TEST_ATTEMPTED = 'true'\n          }\n          sh '''#! /bin/bash\n                set -e\n                if grep -q 'docker-baseimage' <<< \"${LS_REPO}\"; then\n                  echo \"Detected baseimage, setting LSIO_FIRST_PARTY=true\"\n                  if [ -n \"${CI_DOCKERENV}\" ]; then\n                    CI_DOCKERENV=\"LSIO_FIRST_PARTY=true|${CI_DOCKERENV}\"\n                  else\n                    CI_DOCKERENV=\"LSIO_FIRST_PARTY=true\"\n                  fi\n                fi\n                docker pull ghcr.io/linuxserver/ci:${CITEST_IMAGETAG}\n                if [ \"${MULTIARCH}\" == \"true\" ]; then\n                  docker pull ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} --platform=arm64\n                  docker tag ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} ${IMAGE}:arm64v8-${META_TAG}\n                fi\n                docker run --rm \\\n                --shm-size=1gb \\\n                -v /var/run/docker.sock:/var/run/docker.sock \\\n                -e IMAGE=\\\"${IMAGE}\\\" \\\n                -e DOCKER_LOGS_TIMEOUT=\\\"${CI_DELAY}\\\" \\\n                -e TAGS=\\\"${CI_TAGS}\\\" \\\n                -e META_TAG=\\\"${META_TAG}\\\" \\\n                -e RELEASE_TAG=\\\"latest\\\" \\\n                -e PORT=\\\"${CI_PORT}\\\" \\\n                -e SSL=\\\"${CI_SSL}\\\" \\\n                -e BASE=\\\"${DIST_IMAGE}\\\" \\\n                -e SECRET_KEY=\\\"${S3_SECRET}\\\" \\\n                -e ACCESS_KEY=\\\"${S3_KEY}\\\" \\\n                -e DOCKER_ENV=\\\"${CI_DOCKERENV}\\\" \\\n                -e WEB_SCREENSHOT=\\\"${CI_WEB}\\\" \\\n                -e WEB_AUTH=\\\"${CI_AUTH}\\\" \\\n                -e WEB_PATH=\\\"${CI_WEBPATH}\\\" \\\n                -e NODE_NAME=\\\"${NODE_NAME}\\\" \\\n                -e SYFT_IMAGE_TAG=\\\"${CI_SYFT_IMAGE_TAG:-${SYFT_IMAGE_TAG}}\\\" \\\n                -e COMMIT_SHA=\\\"${COMMIT_SHA}\\\" \\\n                -e BUILD_NUMBER=\\\"${BUILD_NUMBER}\\\" \\\n                -t ghcr.io/linuxserver/ci:${CITEST_IMAGETAG} \\\n                python3 test_build.py'''\n        }\n      }\n    }\n    /* ##################\n         Release Logic\n       ################## */\n    // If this is an amd64 only image only push a single image\n    stage('Docker-Push-Single') {\n      when {\n        environment name: 'MULTIARCH', value: 'false'\n        environment name: 'EXIT_STATUS', value: ''\n      }\n      steps {\n        retry_backoff(5,5) {\n          sh '''#! /bin/bash\n                set -e\n                for PUSHIMAGE in \"${IMAGE}\" \"${GITLABIMAGE}\" \"${GITHUBIMAGE}\" \"${QUAYIMAGE}\"; do\n                  [[ ${PUSHIMAGE%%/*} =~ \\\\. ]] && PUSHIMAGEPLUS=\"${PUSHIMAGE}\" || PUSHIMAGEPLUS=\"docker.io/${PUSHIMAGE}\"\n                  IFS=',' read -ra CACHE <<< \"$BUILDCACHE\"\n                  for i in \"${CACHE[@]}\"; do\n                      if [[ \"${PUSHIMAGEPLUS}\" == \"$(cut -d \"/\" -f1 <<< ${i})\"* ]]; then\n                          CACHEIMAGE=${i}\n                      fi\n                  done\n                  docker buildx imagetools create --prefer-index=false -t ${PUSHIMAGE}:${META_TAG} -t ${PUSHIMAGE}:latest -t ${PUSHIMAGE}:${EXT_RELEASE_TAG} ${CACHEIMAGE}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} || \\\n                    { if [[ \"${PUSHIMAGE}\" != \"${QUAYIMAGE}\" ]]; then exit 1; fi; }\n                  if [ -n \"${SEMVER}\" ]; then\n                    docker buildx imagetools create --prefer-index=false -t ${PUSHIMAGE}:${SEMVER} ${CACHEIMAGE}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} || \\\n                      { if [[ \"${PUSHIMAGE}\" != \"${QUAYIMAGE}\" ]]; then exit 1; fi; }\n                  fi\n                done\n              '''\n        }\n      }\n    }\n    // If this is a multi arch release push all images and define the manifest\n    stage('Docker-Push-Multi') {\n      when {\n        environment name: 'MULTIARCH', value: 'true'\n        environment name: 'EXIT_STATUS', value: ''\n      }\n      steps {\n        retry_backoff(5,5) {\n          sh '''#! /bin/bash\n                set -e\n                for MANIFESTIMAGE in \"${IMAGE}\" \"${GITLABIMAGE}\" \"${GITHUBIMAGE}\" \"${QUAYIMAGE}\"; do\n                  [[ ${MANIFESTIMAGE%%/*} =~ \\\\. ]] && MANIFESTIMAGEPLUS=\"${MANIFESTIMAGE}\" || MANIFESTIMAGEPLUS=\"docker.io/${MANIFESTIMAGE}\"\n                  IFS=',' read -ra CACHE <<< \"$BUILDCACHE\"\n                  for i in \"${CACHE[@]}\"; do\n                      if [[ \"${MANIFESTIMAGEPLUS}\" == \"$(cut -d \"/\" -f1 <<< ${i})\"* ]]; then\n                          CACHEIMAGE=${i}\n                      fi\n                  done\n                  docker buildx imagetools create --prefer-index=false -t ${MANIFESTIMAGE}:amd64-${META_TAG} -t ${MANIFESTIMAGE}:amd64-latest -t ${MANIFESTIMAGE}:amd64-${EXT_RELEASE_TAG} ${CACHEIMAGE}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} || \\\n                    { if [[ \"${MANIFESTIMAGE}\" != \"${QUAYIMAGE}\" ]]; then exit 1; fi; }\n                  docker buildx imagetools create --prefer-index=false -t ${MANIFESTIMAGE}:arm64v8-${META_TAG} -t ${MANIFESTIMAGE}:arm64v8-latest -t ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG} ${CACHEIMAGE}:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} || \\\n                    { if [[ \"${MANIFESTIMAGE}\" != \"${QUAYIMAGE}\" ]]; then exit 1; fi; }\n                  if [ -n \"${SEMVER}\" ]; then\n                    docker buildx imagetools create --prefer-index=false -t ${MANIFESTIMAGE}:amd64-${SEMVER} ${CACHEIMAGE}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} || \\\n                      { if [[ \"${MANIFESTIMAGE}\" != \"${QUAYIMAGE}\" ]]; then exit 1; fi; }\n                    docker buildx imagetools create --prefer-index=false -t ${MANIFESTIMAGE}:arm64v8-${SEMVER} ${CACHEIMAGE}:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} || \\\n                      { if [[ \"${MANIFESTIMAGE}\" != \"${QUAYIMAGE}\" ]]; then exit 1; fi; }\n                  fi\n                done\n                for MANIFESTIMAGE in \"${IMAGE}\" \"${GITLABIMAGE}\" \"${GITHUBIMAGE}\" \"${QUAYIMAGE}\"; do\n                  docker buildx imagetools create -t ${MANIFESTIMAGE}:latest ${MANIFESTIMAGE}:amd64-latest ${MANIFESTIMAGE}:arm64v8-latest || \\\n                    { if [[ \"${MANIFESTIMAGE}\" != \"${QUAYIMAGE}\" ]]; then exit 1; fi; }\n                  docker buildx imagetools create -t ${MANIFESTIMAGE}:${META_TAG} ${MANIFESTIMAGE}:amd64-${META_TAG} ${MANIFESTIMAGE}:arm64v8-${META_TAG} || \\\n                    { if [[ \"${MANIFESTIMAGE}\" != \"${QUAYIMAGE}\" ]]; then exit 1; fi; }\n                  docker buildx imagetools create -t ${MANIFESTIMAGE}:${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:amd64-${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG} || \\\n                    { if [[ \"${MANIFESTIMAGE}\" != \"${QUAYIMAGE}\" ]]; then exit 1; fi; }\n                  if [ -n \"${SEMVER}\" ]; then\n                    docker buildx imagetools create -t ${MANIFESTIMAGE}:${SEMVER} ${MANIFESTIMAGE}:amd64-${SEMVER} ${MANIFESTIMAGE}:arm64v8-${SEMVER} || \\\n                      { if [[ \"${MANIFESTIMAGE}\" != \"${QUAYIMAGE}\" ]]; then exit 1; fi; }\n                  fi\n                done\n              '''\n        }\n      }\n    }\n    // If this is a public release tag it in the LS Github\n    stage('Github-Tag-Push-Release') {\n      when {\n        branch \"master\"\n        expression {\n          env.LS_RELEASE != env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER\n        }\n        environment name: 'CHANGE_ID', value: ''\n        environment name: 'EXIT_STATUS', value: ''\n      }\n      steps {\n        sh '''#! /bin/bash\n              echo \"Auto-generating release notes\"\n              if [ \"$(git tag --points-at HEAD)\" != \"\" ]; then\n                echo \"Existing tag points to current commit, suggesting no new LS changes\"\n                AUTO_RELEASE_NOTES=\"No changes\"\n              else\n                AUTO_RELEASE_NOTES=$(curl -fsL -H \"Authorization: token ${GITHUB_TOKEN}\" -H \"Accept: application/vnd.github+json\" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/releases/generate-notes  \\\n                  -d '{\"tag_name\":\"'${META_TAG}'\",\\\n                      \"target_commitish\": \"master\"}' \\\n                  | jq -r '.body' | sed 's|## What.s Changed||')\n              fi\n              echo \"Pushing New tag for current commit ${META_TAG}\"\n              curl -H \"Authorization: token ${GITHUB_TOKEN}\" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/git/tags \\\n                -d '{\"tag\":\"'${META_TAG}'\",\\\n                  \"object\": \"'${COMMIT_SHA}'\",\\\n                  \"message\": \"Tagging Release '${EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER}' to master\",\\\n                  \"type\": \"commit\",\\\n                  \"tagger\": {\"name\": \"LinuxServer-CI\",\"email\": \"ci@linuxserver.io\",\"date\": \"'${GITHUB_DATE}'\"}}'\n              echo \"Pushing New release for Tag\"\n              curl -H \"Authorization: token ${GITHUB_TOKEN}\" -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/releases/latest | jq -r '. |.body' > releasebody.json\n              jq -n \\\n                --arg tag_name \"$META_TAG\" \\\n                --arg target_commitish \"master\" \\\n                --arg ci_url \"${CI_URL:-N/A}\" \\\n                --arg ls_notes \"$AUTO_RELEASE_NOTES\" \\\n                --arg remote_notes \"$(cat releasebody.json)\" \\\n                '{\n                  \"tag_name\": $tag_name,\n                  \"target_commitish\": $target_commitish,\n                  \"name\": $tag_name,\n                  \"body\": (\"**CI Report:**\\\\n\\\\n\" + $ci_url + \"\\\\n\\\\n**LinuxServer Changes:**\\\\n\\\\n\" + $ls_notes + \"\\\\n\\\\n**Remote Changes:**\\\\n\\\\n\" + $remote_notes),\n                  \"draft\": false,\n                  \"prerelease\": false                }' > releasebody.json.done\n              curl -H \"Authorization: token ${GITHUB_TOKEN}\" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/releases -d @releasebody.json.done\n        '''\n      }\n    }\n    // Add protection to the release branch\n    stage('Github-Release-Branch-Protection') {\n      when {\n        branch \"master\"\n        environment name: 'CHANGE_ID', value: ''\n        environment name: 'EXIT_STATUS', value: ''\n      }\n      steps {\n        echo \"Setting up protection for release branch master\"\n        sh '''#! /bin/bash\n          curl -H \"Authorization: token ${GITHUB_TOKEN}\" -X PUT https://api.github.com/repos/${LS_USER}/${LS_REPO}/branches/master/protection \\\n          -d $(jq -c .  << EOF\n            {\n              \"required_status_checks\": null,\n              \"enforce_admins\": false,\n              \"required_pull_request_reviews\": {\n                \"dismiss_stale_reviews\": false,\n                \"require_code_owner_reviews\": false,\n                \"require_last_push_approval\": false,\n                \"required_approving_review_count\": 1\n              },\n              \"restrictions\": null,\n              \"required_linear_history\": false,\n              \"allow_force_pushes\": false,\n              \"allow_deletions\": false,\n              \"block_creations\": false,\n              \"required_conversation_resolution\": true,\n              \"lock_branch\": false,\n              \"allow_fork_syncing\": false,\n              \"required_signatures\": false\n            }\nEOF\n          ) '''\n      }\n    }\n  }\n  /* ######################\n     Comment on PR and Send status to Discord\n     ###################### */\n  post {\n    always {\n      script {\n        env.JOB_DATE = sh(\n            script: '''date '+%Y-%m-%dT%H:%M:%S%:z' ''',\n            returnStdout: true).trim()\n        if (env.EXIT_STATUS == \"ABORTED\"){\n          sh 'echo \"build aborted\"'\n        }else{\n          if (currentBuild.currentResult == \"SUCCESS\"){\n            if (env.GITHUBIMAGE =~ /lspipepr/){\n              env.JOB_WEBHOOK_STATUS='Success'\n              env.JOB_WEBHOOK_COLOUR=3957028\n              env.JOB_WEBHOOK_FOOTER='PR Build'\n            }else if (env.GITHUBIMAGE =~ /lsiodev/){\n              env.JOB_WEBHOOK_STATUS='Success'\n              env.JOB_WEBHOOK_COLOUR=3957028\n              env.JOB_WEBHOOK_FOOTER='Dev Build'\n            }else{\n              env.JOB_WEBHOOK_STATUS='Success'\n              env.JOB_WEBHOOK_COLOUR=1681177\n              env.JOB_WEBHOOK_FOOTER='Live Build'\n            }\n          }else{\n            if (env.GITHUBIMAGE =~ /lspipepr/){\n              env.JOB_WEBHOOK_STATUS='Failure'\n              env.JOB_WEBHOOK_COLOUR=12669523\n              env.JOB_WEBHOOK_FOOTER='PR Build'\n            }else if (env.GITHUBIMAGE =~ /lsiodev/){\n              env.JOB_WEBHOOK_STATUS='Failure'\n              env.JOB_WEBHOOK_COLOUR=12669523\n              env.JOB_WEBHOOK_FOOTER='Dev Build'\n            }else{\n              env.JOB_WEBHOOK_STATUS='Failure'\n              env.JOB_WEBHOOK_COLOUR=16711680\n              env.JOB_WEBHOOK_FOOTER='Live Build'\n            }\n          }\n          sh ''' curl -X POST -H \"Content-Type: application/json\" --data '{\"avatar_url\": \"https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/jenkins-avatar.png\",\"embeds\": [{\"'color'\": '${JOB_WEBHOOK_COLOUR}',\\\n                 \"footer\": {\"text\" : \"'\"${JOB_WEBHOOK_FOOTER}\"'\"},\\\n                 \"timestamp\": \"'${JOB_DATE}'\",\\\n                 \"description\": \"**Build:**  '${BUILD_NUMBER}'\\\\n**CI Results:**  '${CI_URL}'\\\\n**ShellCheck Results:**  '${SHELLCHECK_URL}'\\\\n**Status:**  '${JOB_WEBHOOK_STATUS}'\\\\n**Job:** '${RUN_DISPLAY_URL}'\\\\n**Change:** '${CODE_URL}'\\\\n**External Release:**: '${RELEASE_LINK}'\\\\n**DockerHub:** '${DOCKERHUB_LINK}'\\\\n\"}],\\\n                 \"username\": \"Jenkins\"}' ${BUILDS_DISCORD} '''\n        }\n      }\n      script {\n        if (env.GITHUBIMAGE =~ /lspipepr/){\n          if (env.CI_TEST_ATTEMPTED == \"true\"){\n            sh '''#! /bin/bash\n                  # Function to retrieve JSON data from URL\n                  get_json() {\n                    local url=\"$1\"\n                    local response=$(curl -s \"$url\")\n                    if [ $? -ne 0 ]; then\n                      echo \"Failed to retrieve JSON data from $url\"\n                      return 1\n                    fi\n                    local json=$(echo \"$response\" | jq .)\n                    if [ $? -ne 0 ]; then\n                      echo \"Failed to parse JSON data from $url\"\n                      return 1\n                    fi\n                    echo \"$json\"\n                  }\n\n                  build_table() {\n                    local data=\"$1\"\n\n                    # Get the keys in the JSON data\n                    local keys=$(echo \"$data\" | jq -r 'to_entries | map(.key) | .[]')\n\n                    # Check if keys are empty\n                    if [ -z \"$keys\" ]; then\n                      echo \"JSON report data does not contain any keys or the report does not exist.\"\n                      return 1\n                    fi\n\n                    # Build table header\n                    local header=\"| Tag | Passed |\\\\n| --- | --- |\\\\n\"\n\n                    # Loop through the JSON data to build the table rows\n                    local rows=\"\"\n                    for build in $keys; do\n                      local status=$(echo \"$data\" | jq -r \".[\\\\\"$build\\\\\"].test_success\")\n                      if [ \"$status\" = \"true\" ]; then\n                        status=\"✅\"\n                      else\n                        status=\"❌\"\n                      fi\n                      local row=\"| \"$build\" | \"$status\" |\\\\n\"\n                      rows=\"${rows}${row}\"\n                    done\n\n                    local table=\"${header}${rows}\"\n                    local escaped_table=$(echo \"$table\" | sed 's/\\\"/\\\\\\\\\"/g')\n                    echo \"$escaped_table\"\n                  }\n\n                  if [[ \"${CI}\" = \"true\" ]]; then\n                    # Retrieve JSON data from URL\n                    data=$(get_json \"$CI_JSON_URL\")\n                    # Create table from JSON data\n                    table=$(build_table \"$data\")\n                    echo -e \"$table\"\n\n                    curl -X POST -H \"Authorization: token $GITHUB_TOKEN\" \\\n                      -H \"Accept: application/vnd.github.v3+json\" \\\n                      \"https://api.github.com/repos/$LS_USER/$LS_REPO/issues/$PULL_REQUEST/comments\" \\\n                      -d \"{\\\\\"body\\\\\": \\\\\"I am a bot, here are the test results for this PR: \\\\n${CI_URL}\\\\n${SHELLCHECK_URL}\\\\n${table}\\\\\"}\"\n                  else\n                    curl -X POST -H \"Authorization: token $GITHUB_TOKEN\" \\\n                      -H \"Accept: application/vnd.github.v3+json\" \\\n                      \"https://api.github.com/repos/$LS_USER/$LS_REPO/issues/$PULL_REQUEST/comments\" \\\n                      -d \"{\\\\\"body\\\\\": \\\\\"I am a bot, here is the pushed image/manifest for this PR: \\\\n\\\\n\\\\`${GITHUBIMAGE}:${META_TAG}\\\\`\\\\\"}\"\n                  fi\n                  '''\n          }\n        }\n      }\n      sh '''#!/bin/bash\n            rm -rf /config/.ssh/id_sign\n            rm -rf /config/.ssh/id_sign.pub\n            git config --global --unset gpg.format\n            git config --global --unset user.signingkey\n            git config --global --unset commit.gpgsign\n        '''\n    }\n    cleanup {\n      sh '''#! /bin/bash\n            echo \"Pruning builder!!\"\n            docker builder prune -f --builder container || :\n            containers=$(docker ps -q)\n            if [[ -n \"${containers}\" ]]; then\n              BUILDX_CONTAINER_ID=$(docker ps -qf 'name=buildx_buildkit')\n              for container in ${containers}; do\n                if [[ \"${container}\" == \"${BUILDX_CONTAINER_ID}\" ]]; then\n                  echo \"skipping buildx container in docker stop\"\n                else\n                  echo \"Stopping container ${container}\"\n                  docker stop ${container}\n                fi\n              done\n            fi\n            docker system prune -f --volumes || :\n            docker image prune -af || :\n         '''\n      cleanWs()\n    }\n  }\n}\n\ndef retry_backoff(int max_attempts, int power_base, Closure c) {\n  int n = 0\n  while (n < max_attempts) {\n    try {\n      c()\n      return\n    } catch (err) {\n      if ((n + 1) >= max_attempts) {\n        throw err\n      }\n      sleep(power_base ** n)\n      n++\n    }\n  }\n  return\n}\n"
  },
  {
    "path": "LICENSE",
    "content": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n  The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works.  By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users.  We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors.  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n  To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights.  Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received.  You must make sure that they, too, receive\nor can get the source code.  And you must show them these terms so they\nknow their rights.\n\n  Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n  For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software.  For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n  Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so.  This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software.  The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable.  Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts.  If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n  Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary.  To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                       TERMS AND CONDITIONS\n\n  0. Definitions.\n\n  \"This License\" refers to version 3 of the GNU General Public License.\n\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n  \"The Program\" refers to any copyrightable work licensed under this\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n  To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy.  The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n  A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n  To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy.  Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n  To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies.  Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n  An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License.  If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n  1. Source Code.\n\n  The \"source code\" for a work means the preferred form of the work\nfor making modifications to it.  \"Object code\" means any non-source\nform of a work.\n\n  A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n  The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form.  A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n  The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities.  However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work.  For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n  The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n  The Corresponding Source for a work in source code form is that\nsame work.\n\n  2. Basic Permissions.\n\n  All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met.  This License explicitly affirms your unlimited\npermission to run the unmodified Program.  The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work.  This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n  You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force.  You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright.  Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n  Conveying under any other circumstances is permitted solely under\nthe conditions stated below.  Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n  No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n  When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n  4. Conveying Verbatim Copies.\n\n  You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n  You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n  5. Conveying Modified Source Versions.\n\n  You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n    a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n\n    b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under section\n    7.  This requirement modifies the requirement in section 4 to\n    \"keep intact all notices\".\n\n    c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy.  This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged.  This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n\n    d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\n  A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit.  Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n  6. Conveying Non-Source Forms.\n\n  You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n    a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n\n    b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the\n    Corresponding Source from a network server at no charge.\n\n    c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source.  This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n\n    d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge.  You need not require recipients to copy the\n    Corresponding Source along with the object code.  If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source.  Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n\n    e) Convey the object code using peer-to-peer transmission, provided\n    you inform other peers where the object code and Corresponding\n    Source of the work are being offered to the general public at no\n    charge under subsection 6d.\n\n  A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n  A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling.  In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage.  For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product.  A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n  \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source.  The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n  If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information.  But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n  The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed.  Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n  Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n  7. Additional Terms.\n\n  \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law.  If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n  When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit.  (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.)  You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n  Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n    a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n\n    b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n\n    c) Prohibiting misrepresentation of the origin of that material, or\n    requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n\n    d) Limiting the use for publicity purposes of names of licensors or\n    authors of the material; or\n\n    e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n\n    f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions of\n    it) with contractual assumptions of liability to the recipient, for\n    any liability that these contractual assumptions directly impose on\n    those licensors and authors.\n\n  All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10.  If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term.  If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n  If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n  Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n  8. Termination.\n\n  You may not propagate or modify a covered work except as expressly\nprovided under this License.  Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n  However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n  Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n  Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License.  If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n  9. Acceptance Not Required for Having Copies.\n\n  You are not required to accept this License in order to receive or\nrun a copy of the Program.  Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance.  However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work.  These actions infringe copyright if you do\nnot accept this License.  Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n  10. Automatic Licensing of Downstream Recipients.\n\n  Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License.  You are not responsible\nfor enforcing compliance by third parties with this License.\n\n  An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations.  If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n  You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License.  For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n  11. Patents.\n\n  A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based.  The\nwork thus licensed is called the contributor's \"contributor version\".\n\n  A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version.  For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n  In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement).  To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n  If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients.  \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n  If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n  A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License.  You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n  Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n  12. No Surrender of Others' Freedom.\n\n  If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all.  For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n  13. Use with the GNU Affero General Public License.\n\n  Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work.  The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n  14. Revised Versions of this License.\n\n  The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time.  Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n  Each version is given a distinguishing version number.  If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation.  If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n  If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n  Later license versions may give you additional or different\npermissions.  However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n  15. Disclaimer of Warranty.\n\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. Limitation of Liability.\n\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n  17. Interpretation of Sections 15 and 16.\n\n  If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    <one line to give the program's name and a brief idea of what it does.>\n    Copyright (C) <year>  <name of author>\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper mail.\n\n  If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n    <program>  Copyright (C) <year>  <name of author>\n    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n    This is free software, and you are welcome to redistribute it\n    under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License.  Of course, your program's commands\nmight be different; for a GUI interface, you would use an \"about box\".\n\n  You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n<https://www.gnu.org/licenses/>.\n\n  The GNU General Public License does not permit incorporating your program\ninto proprietary programs.  If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library.  If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License.  But first, please read\n<https://www.gnu.org/licenses/why-not-lgpl.html>.\n"
  },
  {
    "path": "README.md",
    "content": "<!-- DO NOT EDIT THIS FILE MANUALLY -->\n<!-- Please read https://github.com/linuxserver/docker-ombi/blob/master/.github/CONTRIBUTING.md -->\n[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)](https://linuxserver.io)\n\n[![Blog](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=Blog)](https://blog.linuxserver.io \"all the things you can do with our containers including How-To guides, opinions and much more!\")\n[![Discord](https://img.shields.io/discord/354974912613449730.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=Discord&logo=discord)](https://linuxserver.io/discord \"realtime support / chat with the community and the team.\")\n[![Discourse](https://img.shields.io/discourse/https/discourse.linuxserver.io/topics.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&logo=discourse)](https://discourse.linuxserver.io \"post on our community forum.\")\n[![GitHub](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=GitHub&logo=github)](https://github.com/linuxserver \"view the source for all of our repositories.\")\n[![Open Collective](https://img.shields.io/opencollective/all/linuxserver.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=Supporters&logo=open%20collective)](https://opencollective.com/linuxserver \"please consider helping us by either donating or contributing to our budget\")\n\nThe [LinuxServer.io](https://linuxserver.io) team brings you another container release featuring:\n\n* regular and timely application updates\n* easy user mappings (PGID, PUID)\n* custom base image with s6 overlay\n* weekly base OS updates with common layers across the entire LinuxServer.io ecosystem to minimise space usage, down time and bandwidth\n* regular security updates\n\nFind us at:\n\n* [Blog](https://blog.linuxserver.io) - all the things you can do with our containers including How-To guides, opinions and much more!\n* [Discord](https://linuxserver.io/discord) - realtime support / chat with the community and the team.\n* [Discourse](https://discourse.linuxserver.io) - post on our community forum.\n* [GitHub](https://github.com/linuxserver) - view the source for all of our repositories.\n* [Open Collective](https://opencollective.com/linuxserver) - please consider helping us by either donating or contributing to our budget\n\n# [linuxserver/ombi](https://github.com/linuxserver/docker-ombi)\n\n[![Scarf.io pulls](https://scarf.sh/installs-badge/linuxserver-ci/linuxserver%2Fombi?color=94398d&label-color=555555&logo-color=ffffff&style=for-the-badge&package-type=docker)](https://scarf.sh)\n[![GitHub Stars](https://img.shields.io/github/stars/linuxserver/docker-ombi.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&logo=github)](https://github.com/linuxserver/docker-ombi)\n[![GitHub Release](https://img.shields.io/github/release/linuxserver/docker-ombi.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&logo=github)](https://github.com/linuxserver/docker-ombi/releases)\n[![GitHub Package Repository](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=GitHub%20Package&logo=github)](https://github.com/linuxserver/docker-ombi/packages)\n[![GitLab Container Registry](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=GitLab%20Registry&logo=gitlab)](https://gitlab.com/linuxserver.io/docker-ombi/container_registry)\n[![Quay.io](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=Quay.io)](https://quay.io/repository/linuxserver.io/ombi)\n[![Docker Pulls](https://img.shields.io/docker/pulls/linuxserver/ombi.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=pulls&logo=docker)](https://hub.docker.com/r/linuxserver/ombi)\n[![Docker Stars](https://img.shields.io/docker/stars/linuxserver/ombi.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=stars&logo=docker)](https://hub.docker.com/r/linuxserver/ombi)\n[![Jenkins Build](https://img.shields.io/jenkins/build?labelColor=555555&logoColor=ffffff&style=for-the-badge&jobUrl=https%3A%2F%2Fci.linuxserver.io%2Fjob%2FDocker-Pipeline-Builders%2Fjob%2Fdocker-ombi%2Fjob%2Fmaster%2F&logo=jenkins)](https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-ombi/job/master/)\n[![LSIO CI](https://img.shields.io/badge/dynamic/yaml?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=CI&query=CI&url=https%3A%2F%2Fci-tests.linuxserver.io%2Flinuxserver%2Fombi%2Flatest%2Fci-status.yml)](https://ci-tests.linuxserver.io/linuxserver/ombi/latest/index.html)\n\n[Ombi](https://ombi.io) allows you to host your own Plex Request and user management system.\nIf you are sharing your Plex server with other users, allow them to request new content using an easy to manage interface!\nManage all your requests for Movies and TV with ease, leave notes for the user and get notification when a user requests something.\nAllow your users to post issues against their requests so you know there is a problem with the audio etc.\nEven automatically send them weekly newsletters of new content that has been added to your Plex server!\n\n[![ombi](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/ombi.png)](https://ombi.io)\n\n## Supported Architectures\n\nWe utilise the docker manifest for multi-platform awareness. More information is available from docker [here](https://distribution.github.io/distribution/spec/manifest-v2-2/#manifest-list) and our announcement [here](https://blog.linuxserver.io/2019/02/21/the-lsio-pipeline-project/).\n\nSimply pulling `lscr.io/linuxserver/ombi:latest` should retrieve the correct image for your arch, but you can also pull specific arch images via tags.\n\nThe architectures supported by this image are:\n\n| Architecture | Available | Tag |\n| :----: | :----: | ---- |\n| x86-64 | ✅ | amd64-\\<version tag\\> |\n| arm64 | ✅ | arm64v8-\\<version tag\\> |\n\n## Version Tags\n\nThis image provides various versions that are available via tags. Please read the descriptions carefully and exercise caution when using unstable or development tags.\n\n| Tag | Available | Description |\n| :----: | :----: |--- |\n| latest | ✅ | Stable Ombi releases |\n| development | ✅ | Releases from the `develop` branch of Ombi |\n\n## Application Setup\n\nAccess the webui at `<your-ip>:3579`. Follow the setup wizard on initial install.  Then configure the required services.\n\n## Read-Only Operation\n\nThis image can be run with a read-only container filesystem. For details please [read the docs](https://docs.linuxserver.io/misc/read-only/).\n\n### Caveats\n\n* `BASE_URL` cannot be changed from `/`\n\n## Usage\n\nTo help you get started creating a container from this image you can either use docker-compose or the docker cli.\n\n>[!NOTE]\n>Unless a parameter is flagged as 'optional', it is *mandatory* and a value must be provided.\n\n### docker-compose (recommended, [click here for more info](https://docs.linuxserver.io/general/docker-compose))\n\n```yaml\n---\nservices:\n  ombi:\n    image: lscr.io/linuxserver/ombi:latest\n    container_name: ombi\n    environment:\n      - PUID=1000\n      - PGID=1000\n      - TZ=Etc/UTC\n      - BASE_URL=/ #optional\n    volumes:\n      - /path/to/ombi/config:/config\n    ports:\n      - 3579:3579\n    restart: unless-stopped\n```\n\n### docker cli ([click here for more info](https://docs.docker.com/engine/reference/commandline/cli/))\n\n```bash\ndocker run -d \\\n  --name=ombi \\\n  -e PUID=1000 \\\n  -e PGID=1000 \\\n  -e TZ=Etc/UTC \\\n  -e BASE_URL=/ `#optional` \\\n  -p 3579:3579 \\\n  -v /path/to/ombi/config:/config \\\n  --restart unless-stopped \\\n  lscr.io/linuxserver/ombi:latest\n```\n\n## Parameters\n\nContainers are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate `<external>:<internal>` respectively. For example, `-p 8080:80` would expose port `80` from inside the container to be accessible from the host's IP on port `8080` outside the container.\n\n| Parameter | Function |\n| :----: | --- |\n| `-p 3579:3579` | web gui |\n| `-e PUID=1000` | for UserID - see below for explanation |\n| `-e PGID=1000` | for GroupID - see below for explanation |\n| `-e TZ=Etc/UTC` | specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). |\n| `-e BASE_URL=/` | Subfolder can optionally be defined as an env variable for reverse proxies. Keep in mind that once this value is defined, the gui setting for base url no longer works. To use the gui setting, remove this env variable. |\n| `-v /config` | Contains all relevant configuration files. |\n| `--read-only=true` | Run container with a read-only filesystem. Please [read the docs](https://docs.linuxserver.io/misc/read-only/). |\n\n## Environment variables from files (Docker secrets)\n\nYou can set any environment variable from a file by using a special prepend `FILE__`.\n\nAs an example:\n\n```bash\n-e FILE__MYVAR=/run/secrets/mysecretvariable\n```\n\nWill set the environment variable `MYVAR` based on the contents of the `/run/secrets/mysecretvariable` file.\n\n## Umask for running applications\n\nFor all of our images we provide the ability to override the default umask settings for services started within the containers using the optional `-e UMASK=022` setting.\nKeep in mind umask is not chmod it subtracts from permissions based on it's value it does not add. Please read up [here](https://en.wikipedia.org/wiki/Umask) before asking for support.\n\n## User / Group Identifiers\n\nWhen using volumes (`-v` flags), permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user `PUID` and group `PGID`.\n\nEnsure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.\n\nIn this instance `PUID=1000` and `PGID=1000`, to find yours use `id your_user` as below:\n\n```bash\nid your_user\n```\n\nExample output:\n\n```text\nuid=1000(your_user) gid=1000(your_user) groups=1000(your_user)\n```\n\n## Docker Mods\n\n[![Docker Mods](https://img.shields.io/badge/dynamic/yaml?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=ombi&query=%24.mods%5B%27ombi%27%5D.mod_count&url=https%3A%2F%2Fraw.githubusercontent.com%2Flinuxserver%2Fdocker-mods%2Fmaster%2Fmod-list.yml)](https://mods.linuxserver.io/?mod=ombi \"view available mods for this container.\") [![Docker Universal Mods](https://img.shields.io/badge/dynamic/yaml?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=universal&query=%24.mods%5B%27universal%27%5D.mod_count&url=https%3A%2F%2Fraw.githubusercontent.com%2Flinuxserver%2Fdocker-mods%2Fmaster%2Fmod-list.yml)](https://mods.linuxserver.io/?mod=universal \"view available universal mods.\")\n\nWe publish various [Docker Mods](https://github.com/linuxserver/docker-mods) to enable additional functionality within the containers. The list of Mods available for this image (if any) as well as universal mods that can be applied to any one of our images can be accessed via the dynamic badges above.\n\n## Support Info\n\n* Shell access whilst the container is running:\n\n    ```bash\n    docker exec -it ombi /bin/bash\n    ```\n\n* To monitor the logs of the container in realtime:\n\n    ```bash\n    docker logs -f ombi\n    ```\n\n* Container version number:\n\n    ```bash\n    docker inspect -f '{{ index .Config.Labels \"build_version\" }}' ombi\n    ```\n\n* Image version number:\n\n    ```bash\n    docker inspect -f '{{ index .Config.Labels \"build_version\" }}' lscr.io/linuxserver/ombi:latest\n    ```\n\n## Updating Info\n\nMost of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (noted in the relevant readme.md), we do not recommend or support updating apps inside the container. Please consult the [Application Setup](#application-setup) section above to see if it is recommended for the image.\n\nBelow are the instructions for updating containers:\n\n### Via Docker Compose\n\n* Update images:\n    * All images:\n\n        ```bash\n        docker-compose pull\n        ```\n\n    * Single image:\n\n        ```bash\n        docker-compose pull ombi\n        ```\n\n* Update containers:\n    * All containers:\n\n        ```bash\n        docker-compose up -d\n        ```\n\n    * Single container:\n\n        ```bash\n        docker-compose up -d ombi\n        ```\n\n* You can also remove the old dangling images:\n\n    ```bash\n    docker image prune\n    ```\n\n### Via Docker Run\n\n* Update the image:\n\n    ```bash\n    docker pull lscr.io/linuxserver/ombi:latest\n    ```\n\n* Stop the running container:\n\n    ```bash\n    docker stop ombi\n    ```\n\n* Delete the container:\n\n    ```bash\n    docker rm ombi\n    ```\n\n* Recreate a new container with the same docker run parameters as instructed above (if mapped correctly to a host folder, your `/config` folder and settings will be preserved)\n* You can also remove the old dangling images:\n\n    ```bash\n    docker image prune\n    ```\n\n### Image Update Notifications - Diun (Docker Image Update Notifier)\n\n>[!TIP]\n>We recommend [Diun](https://crazymax.dev/diun/) for update notifications. Other tools that automatically update containers unattended are not recommended or supported.\n\n## Building locally\n\nIf you want to make local modifications to these images for development purposes or just to customize the logic:\n\n```bash\ngit clone https://github.com/linuxserver/docker-ombi.git\ncd docker-ombi\ndocker build \\\n  --no-cache \\\n  --pull \\\n  -t lscr.io/linuxserver/ombi:latest .\n```\n\nThe ARM variants can be built on x86_64 hardware and vice versa using `lscr.io/linuxserver/qemu-static`\n\n```bash\ndocker run --rm --privileged lscr.io/linuxserver/qemu-static --reset\n```\n\nOnce registered you can define the dockerfile to use with `-f Dockerfile.aarch64`.\n\n## Versions\n\n* **08.07.24:** - Rebase to Ubuntu Noble.\n* **01.07.23:** - Deprecate armhf. As announced [here](https://www.linuxserver.io/blog/a-farewell-to-arm-hf)\n* **11.09.22:** - Migrate to s6v3.\n* **01.05.22:** - Rebase to Jammy.\n* **26.04.21:** - Update tarball name, allow for v4 builds in stable.\n* **18.01.21:** - Update upstream repo. Deprecate `v4-preview` tag, which is merged to `development` tag upstream.\n* **14.04.20:** - Add Ombi donate links.\n* **10.05.19:** - Added an optional env variable for base url setting.\n* **23.03.19:** - Switching to new Base images, shift to arm32v7 tag.\n* **22.02.19:** - Clarify info on tags and development builds.\n* **25.01.19:** - Add info on tags and development builds.\n* **09.01.19:** - Switch to multi-arch builds and add aarch64 image.\n* **11.03.18:** - Add HOME env to Dockerfile.\n* **05.03.18:** - Switch to Ombi v3 stable based on .net core.\n* **26.01.18:** - Fix continuation lines.\n* **16.04.17:** - Switch to using inhouse mono baseimage.\n* **17.02.17:** - Initial Release.\n"
  },
  {
    "path": "jenkins-vars.yml",
    "content": "---\n\n# jenkins variables\nproject_name: docker-ombi\nexternal_type: github_stable\nrelease_type: stable\nrelease_tag: latest\nls_branch: master\nrepo_vars:\n  - EXT_GIT_BRANCH = 'master'\n  - EXT_USER = 'Ombi-app'\n  - EXT_REPO = 'Ombi'\n  - CONTAINER_NAME = 'ombi'\n  - BUILD_VERSION_ARG = 'OMBI_RELEASE'\n  - LS_USER = 'linuxserver'\n  - LS_REPO = 'docker-ombi'\n  - DOCKERHUB_IMAGE = 'linuxserver/ombi'\n  - DEV_DOCKERHUB_IMAGE = 'lsiodev/ombi'\n  - PR_DOCKERHUB_IMAGE = 'lspipepr/ombi'\n  - DIST_IMAGE = 'ubuntu'\n  - MULTIARCH='true'\n  - CI='true'\n  - CI_WEB='true'\n  - CI_PORT='3579'\n  - CI_SSL='false'\n  - CI_DELAY='120'\n  - CI_DOCKERENV=''\n  - CI_AUTH=''\n  - CI_WEBPATH=''\nsponsor_links:\n  - { name: \"Ombi - Patreon\", url: \"https://patreon.com/tidusjar\" }\n  - { name: \"Ombi - PayPal\", url: \"https://paypal.me/PlexRequestsNet\" }\n"
  },
  {
    "path": "package_versions.txt",
    "content": "NAME                         VERSION                            TYPE   \nadduser                      3.137ubuntu1                       deb     \napt                          2.8.3                              deb     \napt-utils                    2.8.3                              deb     \nbase-files                   13ubuntu10.4                       deb     \nbase-passwd                  3.6.3build1                        deb     \nbash                         5.2.21-2ubuntu4                    deb     \nbsdutils                     1:2.39.3-9ubuntu6.5                deb     \nca-certificates              20240203                           deb     \ncatatonit                    0.1.7-1                            deb     \ncoreutils                    9.4-3ubuntu6.2                     deb     \ncron                         3.0pl1-184ubuntu2                  deb     \ncron-daemon-common           3.0pl1-184ubuntu2                  deb     \ncurl                         8.5.0-2ubuntu10.8                  deb     \ndash                         0.5.12-6ubuntu5                    deb     \ndebconf                      1.5.86ubuntu1                      deb     \ndebianutils                  5.17build1                         deb     \ndiffutils                    1:3.10-1build1                     deb     \ndirmngr                      2.4.4-2ubuntu17.4                  deb     \ndpkg                         1.22.6ubuntu6.5                    deb     \ne2fsprogs                    1.47.0-2.4~exp1ubuntu4.1           deb     \nfindutils                    4.9.0-5build1                      deb     \ngcc-14-base                  14.2.0-4ubuntu2~24.04.1            deb     \ngnupg                        2.4.4-2ubuntu17.4                  deb     \ngnupg-l10n                   2.4.4-2ubuntu17.4                  deb     \ngnupg-utils                  2.4.4-2ubuntu17.4                  deb     \ngpg                          2.4.4-2ubuntu17.4                  deb     \ngpg-agent                    2.4.4-2ubuntu17.4                  deb     \ngpg-wks-client               2.4.4-2ubuntu17.4                  deb     \ngpgconf                      2.4.4-2ubuntu17.4                  deb     \ngpgsm                        2.4.4-2ubuntu17.4                  deb     \ngpgv                         2.4.4-2ubuntu17.4                  deb     \ngrep                         3.11-4build1                       deb     \ngzip                         1.12-1ubuntu3.1                    deb     \nhostname                     3.23+nmu2ubuntu2                   deb     \ninit-system-helpers          1.66ubuntu1                        deb     \njq                           1.7.1-3ubuntu0.24.04.2             deb     \nkeyboxd                      2.4.4-2ubuntu17.4                  deb     \nkrb5-locales                 1.20.1-6ubuntu2.6                  deb     \nlibacl1                      2.3.2-1build1.1                    deb     \nlibapt-pkg6.0t64             2.8.3                              deb     \nlibassuan0                   2.5.6-1build1                      deb     \nlibattr1                     1:2.5.2-1build1.1                  deb     \nlibaudit-common              1:3.1.2-2.1build1.1                deb     \nlibaudit1                    1:3.1.2-2.1build1.1                deb     \nlibblkid1                    2.39.3-9ubuntu6.5                  deb     \nlibbrotli1                   1.1.0-2build2                      deb     \nlibbsd0                      0.12.1-1build1.1                   deb     \nlibbz2-1.0                   1.0.8-5.1build0.1                  deb     \nlibc-bin                     2.39-0ubuntu8.7                    deb     \nlibc6                        2.39-0ubuntu8.7                    deb     \nlibcap-ng0                   0.8.4-2build2                      deb     \nlibcap2                      1:2.66-5ubuntu2.4                  deb     \nlibcom-err2                  1.47.0-2.4~exp1ubuntu4.1           deb     \nlibcrypt1                    1:4.4.36-4build1                   deb     \nlibcurl4t64                  8.5.0-2ubuntu10.8                  deb     \nlibdb5.3t64                  5.3.28+dfsg2-7                     deb     \nlibdebconfclient0            0.271ubuntu3                       deb     \nlibext2fs2t64                1.47.0-2.4~exp1ubuntu4.1           deb     \nlibffi8                      3.4.6-1build1                      deb     \nlibgcc-s1                    14.2.0-4ubuntu2~24.04.1            deb     \nlibgcrypt20                  1.10.3-2build1                     deb     \nlibgmp10                     2:6.3.0+dfsg-2ubuntu6.1            deb     \nlibgnutls30t64               3.8.3-1.1ubuntu3.5                 deb     \nlibgpg-error0                1.47-3build2.1                     deb     \nlibgssapi-krb5-2             1.20.1-6ubuntu2.6                  deb     \nlibhogweed6t64               3.9.1-2.2build1.1                  deb     \nlibicu74                     74.2-1ubuntu3.1                    deb     \nlibidn2-0                    2.3.7-2build1.1                    deb     \nlibjq1                       1.7.1-3ubuntu0.24.04.2             deb     \nlibk5crypto3                 1.20.1-6ubuntu2.6                  deb     \nlibkeyutils1                 1.6.3-3build1                      deb     \nlibkrb5-3                    1.20.1-6ubuntu2.6                  deb     \nlibkrb5support0              1.20.1-6ubuntu2.6                  deb     \nlibksba8                     1.6.6-1build1                      deb     \nlibldap-common               2.6.10+dfsg-0ubuntu0.24.04.1       deb     \nlibldap2                     2.6.10+dfsg-0ubuntu0.24.04.1       deb     \nliblz4-1                     1.9.4-1build1.1                    deb     \nliblzma5                     5.6.1+really5.4.5-1ubuntu0.2       deb     \nlibmd0                       1.1.0-2build1.1                    deb     \nlibmount1                    2.39.3-9ubuntu6.5                  deb     \nlibncursesw6                 6.4+20240113-1ubuntu2              deb     \nlibnettle8t64                3.9.1-2.2build1.1                  deb     \nlibnghttp2-14                1.59.0-1ubuntu0.2                  deb     \nlibnpth0t64                  1.6-3.1build1                      deb     \nlibonig5                     6.9.9-1build1                      deb     \nlibp11-kit0                  0.25.3-4ubuntu2.1                  deb     \nlibpam-modules               1.5.3-5ubuntu5.5                   deb     \nlibpam-modules-bin           1.5.3-5ubuntu5.5                   deb     \nlibpam-runtime               1.5.3-5ubuntu5.5                   deb     \nlibpam0g                     1.5.3-5ubuntu5.5                   deb     \nlibpcre2-8-0                 10.42-4ubuntu2.1                   deb     \nlibproc2-0                   2:4.0.4-4ubuntu3.2                 deb     \nlibpsl5t64                   0.21.2-1.1build1                   deb     \nlibreadline8t64              8.2-4build1                        deb     \nlibrtmp1                     2.4+20151223.gitfa8646d.1-2build7  deb     \nlibsasl2-2                   2.1.28+dfsg1-5ubuntu3.1            deb     \nlibsasl2-modules             2.1.28+dfsg1-5ubuntu3.1            deb     \nlibsasl2-modules-db          2.1.28+dfsg1-5ubuntu3.1            deb     \nlibseccomp2                  2.5.5-1ubuntu3.1                   deb     \nlibselinux1                  3.5-2ubuntu2.1                     deb     \nlibsemanage-common           3.5-1build5                        deb     \nlibsemanage2                 3.5-1build5                        deb     \nlibsepol2                    3.5-2build1                        deb     \nlibsmartcols1                2.39.3-9ubuntu6.5                  deb     \nlibsqlite3-0                 3.45.1-1ubuntu2.5                  deb     \nlibss2                       1.47.0-2.4~exp1ubuntu4.1           deb     \nlibssh-4                     0.10.6-2ubuntu0.4                  deb     \nlibssl3t64                   3.0.13-0ubuntu3.9                  deb     \nlibstdc++6                   14.2.0-4ubuntu2~24.04.1            deb     \nlibsystemd0                  255.4-1ubuntu8.15                  deb     \nlibtasn1-6                   4.19.0-3ubuntu0.24.04.2            deb     \nlibtinfo6                    6.4+20240113-1ubuntu2              deb     \nlibudev1                     255.4-1ubuntu8.15                  deb     \nlibunistring5                1.1-2build1.1                      deb     \nlibuuid1                     2.39.3-9ubuntu6.5                  deb     \nlibxxhash0                   0.8.2-2build1                      deb     \nlibzstd1                     1.5.5+dfsg2-2build1.1              deb     \nlocales                      2.39-0ubuntu8.7                    deb     \nlogin                        1:4.13+dfsg1-4ubuntu3.2            deb     \nlogsave                      1.47.0-2.4~exp1ubuntu4.1           deb     \nmawk                         1.3.4.20240123-1build1             deb     \nmount                        2.39.3-9ubuntu6.5                  deb     \nncurses-base                 6.4+20240113-1ubuntu2              deb     \nncurses-bin                  6.4+20240113-1ubuntu2              deb     \nnetcat-openbsd               1.226-1ubuntu2                     deb     \nopenssl                      3.0.13-0ubuntu3.9                  deb     \npasswd                       1:4.13+dfsg1-4ubuntu3.2            deb     \nperl-base                    5.38.2-3.2ubuntu0.2                deb     \npinentry-curses              1.2.1-3ubuntu5                     deb     \nprocps                       2:4.0.4-4ubuntu3.2                 deb     \npublicsuffix                 20231001.0357-0.1                  deb     \nreadline-common              8.2-4build1                        deb     \nsed                          4.9-2build1                        deb     \nsensible-utils               0.0.22                             deb     \nsystemd-standalone-sysusers  255.4-1ubuntu8.15                  deb     \nsysvinit-utils               3.08-6ubuntu3                      deb     \ntar                          1.35+dfsg-3build1                  deb     \ntzdata                       2026a-0ubuntu0.24.04.1             deb     \nubuntu-keyring               2023.11.28.1                       deb     \nunminimize                   0.2.1                              deb     \nutil-linux                   2.39.3-9ubuntu6.5                  deb     \nzlib1g                       1:1.3.dfsg-3.1ubuntu2.1            deb     \n"
  },
  {
    "path": "readme-vars.yml",
    "content": "---\n\n# project information\nproject_name: ombi\nproject_url: \"https://ombi.io\"\nproject_logo: \"https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/ombi.png\"\nproject_blurb: \"[{{ project_name|capitalize }}]({{ project_url }}) allows you to host your own Plex Request and user management system.\\nIf you are sharing your Plex server with other users, allow them to request new content using an easy to manage interface!\\nManage all your requests for Movies and TV with ease, leave notes for the user and get notification when a user requests something.\\nAllow your users to post issues against their requests so you know there is a problem with the audio etc.\\nEven automatically send them weekly newsletters of new content that has been added to your Plex server!\"\nproject_lsio_github_repo_url: \"https://github.com/linuxserver/docker-{{ project_name }}\"\nproject_categories: \"Media Requesters\"\n# supported architectures\navailable_architectures:\n  - {arch: \"{{ arch_x86_64 }}\", tag: \"amd64-latest\"}\n  - {arch: \"{{ arch_arm64 }}\", tag: \"arm64v8-latest\"}\n# development version\ndevelopment_versions: true\ndevelopment_versions_items:\n  - {tag: \"latest\", desc: \"Stable Ombi releases\"}\n  - {tag: \"development\", desc: \"Releases from the `develop` branch of Ombi\"}\n# container parameters\ncommon_param_env_vars_enabled: true\nparam_container_name: \"{{ project_name }}\"\nparam_usage_include_vols: true\nparam_volumes:\n  - {vol_path: \"/config\", vol_host_path: \"/path/to/{{ project_name }}/config\", desc: \"Contains all relevant configuration files.\"}\nparam_usage_include_ports: true\nparam_ports:\n  - {external_port: \"3579\", internal_port: \"3579\", port_desc: \"web gui\"}\n# optional container parameters\nopt_param_usage_include_env: true\nopt_param_env_vars:\n  - {env_var: \"BASE_URL\", env_value: \"/\", desc: \"Subfolder can optionally be defined as an env variable for reverse proxies. Keep in mind that once this value is defined, the gui setting for base url no longer works. To use the gui setting, remove this env variable.\"}\nreadonly_supported: true\nreadonly_message: |\n  * `BASE_URL` cannot be changed from `/`\n# application setup block\napp_setup_block_enabled: true\napp_setup_block: |\n  Access the webui at `<your-ip>:3579`. Follow the setup wizard on initial install.  Then configure the required services.\n# init diagram\ninit_diagram: |\n  \"ombi:latest\": {\n    docker-mods\n    base {\n      fix-attr +\\nlegacy cont-init\n    }\n    docker-mods -> base\n    legacy-services\n    custom services\n    init-services -> legacy-services\n    init-services -> custom services\n    custom services -> legacy-services\n    legacy-services -> ci-service-check\n    init-migrations -> init-adduser\n    init-os-end -> init-config\n    init-config -> init-config-end\n    init-crontab-config -> init-config-end\n    init-ombi-config -> init-config-end\n    init-config -> init-crontab-config\n    init-mods-end -> init-custom-files\n    init-adduser -> init-device-perms\n    base -> init-envfile\n    base -> init-migrations\n    init-config-end -> init-mods\n    init-mods-package-install -> init-mods-end\n    init-mods -> init-mods-package-install\n    init-config -> init-ombi-config\n    init-adduser -> init-os-end\n    init-device-perms -> init-os-end\n    init-envfile -> init-os-end\n    init-custom-files -> init-services\n    init-services -> svc-cron\n    svc-cron -> legacy-services\n    init-services -> svc-ombi\n    svc-ombi -> legacy-services\n  }\n  Base Images: {\n    \"baseimage-ubuntu:noble\"\n  }\n  \"ombi:latest\" <- Base Images\n# changelog\nchangelogs:\n  - {date: \"08.07.24:\", desc: \"Rebase to Ubuntu Noble.\"}\n  - {date: \"01.07.23:\", desc: \"Deprecate armhf. As announced [here](https://www.linuxserver.io/blog/a-farewell-to-arm-hf)\"}\n  - {date: \"11.09.22:\", desc: \"Migrate to s6v3.\"}\n  - {date: \"01.05.22:\", desc: \"Rebase to Jammy.\"}\n  - {date: \"26.04.21:\", desc: \"Update tarball name, allow for v4 builds in stable.\"}\n  - {date: \"18.01.21:\", desc: \"Update upstream repo. Deprecate `v4-preview` tag, which is merged to `development` tag upstream.\"}\n  - {date: \"14.04.20:\", desc: \"Add Ombi donate links.\"}\n  - {date: \"10.05.19:\", desc: \"Added an optional env variable for base url setting.\"}\n  - {date: \"23.03.19:\", desc: \"Switching to new Base images, shift to arm32v7 tag.\"}\n  - {date: \"22.02.19:\", desc: \"Clarify info on tags and development builds.\"}\n  - {date: \"25.01.19:\", desc: \"Add info on tags and development builds.\"}\n  - {date: \"09.01.19:\", desc: \"Switch to multi-arch builds and add aarch64 image.\"}\n  - {date: \"11.03.18:\", desc: \"Add HOME env to Dockerfile.\"}\n  - {date: \"05.03.18:\", desc: \"Switch to Ombi v3 stable based on .net core.\"}\n  - {date: \"26.01.18:\", desc: \"Fix continuation lines.\"}\n  - {date: \"16.04.17:\", desc: \"Switch to using inhouse mono baseimage.\"}\n  - {date: \"17.02.17:\", desc: \"Initial Release.\"}\n"
  },
  {
    "path": "root/donate.txt",
    "content": "Ombi - Patreon: https://patreon.com/tidusjar\nOmbi - PayPal: https://paypal.me/PlexRequestsNet\n"
  },
  {
    "path": "root/etc/s6-overlay/s6-rc.d/init-config-end/dependencies.d/init-ombi-config",
    "content": ""
  },
  {
    "path": "root/etc/s6-overlay/s6-rc.d/init-ombi-config/dependencies.d/init-config",
    "content": ""
  },
  {
    "path": "root/etc/s6-overlay/s6-rc.d/init-ombi-config/run",
    "content": "#!/usr/bin/with-contenv bash\n# shellcheck shell=bash\n\nmkdir -p /run/ombi-temp\n\n# permissions\nlsiown -R abc:abc \\\n    /run/ombi-temp \\\n    /config\n\nif [[ -z ${LSIO_READ_ONLY_FS} ]]; then\n    lsiown abc:abc /app/ombi/ClientApp/dist/index.html\nfi\n"
  },
  {
    "path": "root/etc/s6-overlay/s6-rc.d/init-ombi-config/type",
    "content": "oneshot\n"
  },
  {
    "path": "root/etc/s6-overlay/s6-rc.d/init-ombi-config/up",
    "content": "/etc/s6-overlay/s6-rc.d/init-ombi-config/run\n"
  },
  {
    "path": "root/etc/s6-overlay/s6-rc.d/svc-ombi/dependencies.d/init-services",
    "content": ""
  },
  {
    "path": "root/etc/s6-overlay/s6-rc.d/svc-ombi/notification-fd",
    "content": "3\n"
  },
  {
    "path": "root/etc/s6-overlay/s6-rc.d/svc-ombi/run",
    "content": "#!/usr/bin/with-contenv bash\n# shellcheck shell=bash\n\nif [[ -n \"${BASE_URL}\" ]]; then\n    EXTRA_PARAM=\"--baseurl ${BASE_URL}\"\nfi\n\nexec \\\n    s6-notifyoncheck -d -n 300 -w 1000 -c \"nc -z 127.0.0.1 3579\" \\\n        cd /app/ombi s6-setuidgid abc /app/ombi/Ombi --storage \"/config\" --host http://*:3579 ${EXTRA_PARAM}\n"
  },
  {
    "path": "root/etc/s6-overlay/s6-rc.d/svc-ombi/type",
    "content": "longrun\n"
  },
  {
    "path": "root/etc/s6-overlay/s6-rc.d/user/contents.d/init-ombi-config",
    "content": ""
  },
  {
    "path": "root/etc/s6-overlay/s6-rc.d/user/contents.d/svc-ombi",
    "content": ""
  }
]