diff --git a/.github/workflows/BuildImage.yml b/.github/workflows/BuildImage.yml index 4987615c..6ea82469 100644 --- a/.github/workflows/BuildImage.yml +++ b/.github/workflows/BuildImage.yml @@ -6,7 +6,7 @@ env: GITHUB_REPO: "linuxserver/docker-mods" #don't modify ENDPOINT: "linuxserver/mods" #don't modify BASEIMAGE: "transmission" #replace - MODNAME: "transmission-web-control" #replace + MODNAME: "transmission-trguing" #replace jobs: set-vars: @@ -20,7 +20,7 @@ jobs: echo "BASEIMAGE=${{ env.BASEIMAGE }}" >> $GITHUB_OUTPUT echo "MODNAME=${{ env.MODNAME }}" >> $GITHUB_OUTPUT # **** If the mod needs to be versioned, set the versioning logic below. Otherwise leave as is. **** - MOD_VERSION=$(curl -s https://api.github.com/repos/transmission-web-control/transmission-web-control/releases/latest | jq -rc ".tag_name") + MOD_VERSION=$(curl -s https://api.github.com/repos/openscopeproject/TrguiNG/releases/latest | jq -rc ".tag_name") echo "MOD_VERSION=${MOD_VERSION}" >> $GITHUB_OUTPUT outputs: GITHUB_REPO: ${{ steps.outputs.outputs.GITHUB_REPO }} diff --git a/Dockerfile b/Dockerfile index 991c6614..51491513 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,19 +5,19 @@ FROM ghcr.io/linuxserver/baseimage-alpine:3.19 as buildstage ARG MOD_VERSION RUN \ - echo "**** grab transmission-web-control ****" && \ + echo "**** grab transmission trguing ****" && \ mkdir -p /root-layer/themes && \ if [ -z ${MOD_VERSION} ]; then \ - MOD_VERSION=$(curl -s "https://api.github.com/repos/transmission-web-control/transmission-web-control/releases/latest" \ + MOD_VERSION=$(curl -s "https://api.github.com/repos/openscopeproject/TrguiNG/releases/latest" \ | jq -rc ".tag_name"); \ fi && \ curl -o \ - /tmp/transmission-web-control.tar.gz -L \ - "https://github.com/transmission-web-control/transmission-web-control/releases/download/${MOD_VERSION}/dist.tar.gz" && \ - mkdir -p /root-layer/themes/transmission-web-control && \ - tar xzf \ - /tmp/transmission-web-control.tar.gz -C \ - /root-layer/themes/transmission-web-control --strip-components=2 + /tmp/trguing-web.zip -L \ + "https://github.com/openscopeproject/TrguiNG/releases/download/${MOD_VERSION}/trguing-web-${MOD_VERSION}.zip" && \ + mkdir -p /root-layer/themes/trguing && \ + unzip \ + /tmp/trguing-web.zip -d \ + /root-layer/themes/trguing # copy local files COPY root/ /root-layer/ @@ -25,7 +25,7 @@ COPY root/ /root-layer/ # ## Single layer deployed image ## FROM scratch -LABEL maintainer="FujiZ" +LABEL maintainer="Azlux" # # Add files from buildstage COPY --from=buildstage /root-layer/ / diff --git a/README.md b/README.md index c7a70075..75038683 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ -# Transmission Web Control - Transmission UI Mod +# TrguiNG - Remote GUI for Transmission torrent daemon -This mod adds Transmission Web Control to Transmission, to be installed/updated during container start. +This mod adds TrguiNG to Transmission, to be installed/updated during container start. -In Transmission docker arguments, set an environment variable `DOCKER_MODS=linuxserver/mods:transmission-transmission-web-control` +In Transmission docker arguments, set an environment variable `DOCKER_MODS=linuxserver/mods:transmission-trguing` -If adding multiple mods, enter them in an array separated by `|`, such as `DOCKER_MODS=linuxserver/mods:transmission-transmission-web-control|linuxserver/mods:transmission-mod2` +If adding multiple mods, enter them in an array separated by `|`, such as `DOCKER_MODS=linuxserver/mods:transmission-trguing|linuxserver/mods:transmission-mod2` ## Notes diff --git a/root/etc/s6-overlay/s6-rc.d/init-mod-transmission-transmission-web-control-install/run b/root/etc/s6-overlay/s6-rc.d/init-mod-transmission-transmission-web-control-install/run deleted file mode 100755 index 1444b9bd..00000000 --- a/root/etc/s6-overlay/s6-rc.d/init-mod-transmission-transmission-web-control-install/run +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/with-contenv bash -# shellcheck shell=bash - -printf "/themes/transmission-web-control" > /var/run/s6/container_environment/TRANSMISSION_WEB_HOME - -lsiown -R abc:abc /themes diff --git a/root/etc/s6-overlay/s6-rc.d/init-mod-transmission-transmission-web-control-install/up b/root/etc/s6-overlay/s6-rc.d/init-mod-transmission-transmission-web-control-install/up deleted file mode 100644 index 1c87e771..00000000 --- a/root/etc/s6-overlay/s6-rc.d/init-mod-transmission-transmission-web-control-install/up +++ /dev/null @@ -1 +0,0 @@ -/etc/s6-overlay/s6-rc.d/init-mod-transmission-transmission-web-control-install/run diff --git a/root/etc/s6-overlay/s6-rc.d/init-mod-transmission-transmission-web-control-install/dependencies.d/init-mods-package-install b/root/etc/s6-overlay/s6-rc.d/init-mod-transmission-trguing-install/dependencies.d/init-mods-package-install similarity index 100% rename from root/etc/s6-overlay/s6-rc.d/init-mod-transmission-transmission-web-control-install/dependencies.d/init-mods-package-install rename to root/etc/s6-overlay/s6-rc.d/init-mod-transmission-trguing-install/dependencies.d/init-mods-package-install diff --git a/root/etc/s6-overlay/s6-rc.d/init-mod-transmission-trguing-install/run b/root/etc/s6-overlay/s6-rc.d/init-mod-transmission-trguing-install/run new file mode 100644 index 00000000..c7783ace --- /dev/null +++ b/root/etc/s6-overlay/s6-rc.d/init-mod-transmission-trguing-install/run @@ -0,0 +1,6 @@ +#!/usr/bin/with-contenv bash +# shellcheck shell=bash + +printf "/themes/transmission-trguing" > /var/run/s6/container_environment/TRANSMISSION_WEB_HOME + +lsiown -R abc:abc /themes diff --git a/root/etc/s6-overlay/s6-rc.d/init-mod-transmission-transmission-web-control-install/type b/root/etc/s6-overlay/s6-rc.d/init-mod-transmission-trguing-install/type similarity index 100% rename from root/etc/s6-overlay/s6-rc.d/init-mod-transmission-transmission-web-control-install/type rename to root/etc/s6-overlay/s6-rc.d/init-mod-transmission-trguing-install/type diff --git a/root/etc/s6-overlay/s6-rc.d/init-mod-transmission-trguing-install/up b/root/etc/s6-overlay/s6-rc.d/init-mod-transmission-trguing-install/up new file mode 100644 index 00000000..3f52cec0 --- /dev/null +++ b/root/etc/s6-overlay/s6-rc.d/init-mod-transmission-trguing-install/up @@ -0,0 +1 @@ +/etc/s6-overlay/s6-rc.d/init-mod-transmission-trguing-install/run diff --git a/root/etc/s6-overlay/s6-rc.d/init-mods-end/dependencies.d/init-mod-transmission-transmission-web-control-install b/root/etc/s6-overlay/s6-rc.d/init-mods-end/dependencies.d/init-mod-transmission-trguing-install similarity index 100% rename from root/etc/s6-overlay/s6-rc.d/init-mods-end/dependencies.d/init-mod-transmission-transmission-web-control-install rename to root/etc/s6-overlay/s6-rc.d/init-mods-end/dependencies.d/init-mod-transmission-trguing-install diff --git a/root/etc/s6-overlay/s6-rc.d/user/contents.d/init-mod-transmission-transmission-web-control-install b/root/etc/s6-overlay/s6-rc.d/user/contents.d/init-mod-transmission-trguing-install similarity index 100% rename from root/etc/s6-overlay/s6-rc.d/user/contents.d/init-mod-transmission-transmission-web-control-install rename to root/etc/s6-overlay/s6-rc.d/user/contents.d/init-mod-transmission-trguing-install