fix: copied working files from master branch to template

This commit is contained in:
DaveO16176
2024-07-02 05:27:19 -04:00
parent 683b7abc58
commit 7417b9c217
3 changed files with 12 additions and 10 deletions
@@ -5,7 +5,7 @@
# If using this, we need to make sure we set this init as a dependency of init-mods-package-install so this one runs first
# Determine if setup is needed
if [ ! -f "/usr/bin/apt" ]; then
if [ ! -f /usr/bin/apt ]; then
echo "**** Image is not Ubuntu, skipping emby-mediainfo install ****"
exit 0
fi
@@ -17,8 +17,9 @@ fi
# Ubuntu
if [ -f /usr/bin/apt ]; then
echo "\
mediainfo \
mkvtoolnix \
unzip" >> /mod-repo-packages-to-install.list
cho "**** Installing packages ****"
echo "\
mediainfo \
mkvtoolnix \
unzip" >> /mod-repo-packages-to-install.list
fi
@@ -4,8 +4,9 @@
# 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
curl -o \
/tmp/biftool_linux.zip -L \
"https://github.com/rokudev/samples/raw/master/utilities/bif%20tool/biftool_linux.zip" && \
echo "**** Installing BIF Tool ****"
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 && \
unzip biftool_linux.zip -d /usr/bin
@@ -1 +1 @@
/etc/s6-overlay/s6-rc.d/init-mod-imagename-modname-install/run
/etc/s6-overlay/s6-rc.d/init-mod-emby-mediainfo-plugin-postinstall/run