From 6667b9887cd4cd9397f0bbc4d8150e9e39d395bc Mon Sep 17 00:00:00 2001 From: DaveO16176 Date: Mon, 2 Sep 2024 13:42:50 -0400 Subject: [PATCH 1/2] fix: add missing parameters to unzip --- .../s6-rc.d/init-mod-emby-mediainfo-plugin-postinstall/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/etc/s6-overlay/s6-rc.d/init-mod-emby-mediainfo-plugin-postinstall/run b/root/etc/s6-overlay/s6-rc.d/init-mod-emby-mediainfo-plugin-postinstall/run index 8467dd3f..1de93b0b 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-mod-emby-mediainfo-plugin-postinstall/run +++ b/root/etc/s6-overlay/s6-rc.d/init-mod-emby-mediainfo-plugin-postinstall/run @@ -9,4 +9,4 @@ curl -L \ "https://github.com/rokudev/samples/raw/master/utilities/bif%20tool/biftool_linux.zip" \ -o /tmp/biftool_linux.zip && \ cd /tmp && \ - unzip biftool_linux.zip -d /usr/bin \ No newline at end of file + unzip -uo biftool_linux.zip -d /usr/bin \ No newline at end of file From 240ba6293363f7c2839d627a8924804d17799e2b Mon Sep 17 00:00:00 2001 From: aptalca <541623+aptalca@users.noreply.github.com> Date: Mon, 2 Sep 2024 16:30:58 -0400 Subject: [PATCH 2/2] Conditionally install biftool Signed-off-by: aptalca <541623+aptalca@users.noreply.github.com> --- .../run | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/root/etc/s6-overlay/s6-rc.d/init-mod-emby-mediainfo-plugin-postinstall/run b/root/etc/s6-overlay/s6-rc.d/init-mod-emby-mediainfo-plugin-postinstall/run index 1de93b0b..1c121750 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-mod-emby-mediainfo-plugin-postinstall/run +++ b/root/etc/s6-overlay/s6-rc.d/init-mod-emby-mediainfo-plugin-postinstall/run @@ -1,12 +1,12 @@ #!/usr/bin/with-contenv bash -# This is an install script that is designed to run after init-mods-package-install -# so it can take advantage of packages installed -# init-mods-end depends on this script so that later init and services wait until this script exits - -echo "**** Installing BIF Tool ****" -curl -L \ - "https://github.com/rokudev/samples/raw/master/utilities/bif%20tool/biftool_linux.zip" \ - -o /tmp/biftool_linux.zip && \ +if [[ ! -f /usr/bin/biftool ]]; then + echo "**** Installing BIF Tool ****" + curl -fL \ + "https://github.com/rokudev/samples/raw/master/utilities/bif%20tool/biftool_linux.zip" \ + -o /tmp/biftool_linux.zip && \ cd /tmp && \ - unzip -uo biftool_linux.zip -d /usr/bin \ No newline at end of file + unzip -uo biftool_linux.zip -d /usr/bin +else + echo "**** BIF Tool already installed ****" +fi