From 2455e4aed3c6df724a00a533902935e1552acf01 Mon Sep 17 00:00:00 2001 From: gilbn Date: Thu, 16 Dec 2021 22:56:48 +0100 Subject: [PATCH] check for package manager --- .../qbittorrent/root/etc/cont-init.d/98-themepark | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docker-mods/qbittorrent/root/etc/cont-init.d/98-themepark b/docker-mods/qbittorrent/root/etc/cont-init.d/98-themepark index 576bcff5..fcd3f20b 100644 --- a/docker-mods/qbittorrent/root/etc/cont-init.d/98-themepark +++ b/docker-mods/qbittorrent/root/etc/cont-init.d/98-themepark @@ -27,8 +27,13 @@ if ! [[ -x "$(command -v svn)" ]]; then echo '--------------------------' echo '| Installing svn package |' echo '--------------------------' - apt-get update && \ - apt-get install -y subversion + if [ -x "$(command -v apk)" ]; then + apk update && \ + apk add --no-cache subversion + elif [ -x "$(command -v apt-get)" ]; then + apt-get update && \ + apt-get install -y subversion + fi fi # Display variables for troubleshooting