Browse Source

check for package manager

pull/302/head
gilbn 4 years ago
parent
commit
2455e4aed3
  1. 5
      docker-mods/qbittorrent/root/etc/cont-init.d/98-themepark

5
docker-mods/qbittorrent/root/etc/cont-init.d/98-themepark

@ -27,9 +27,14 @@ if ! [[ -x "$(command -v svn)" ]]; then
echo '--------------------------' echo '--------------------------'
echo '| Installing svn package |' echo '| Installing svn package |'
echo '--------------------------' echo '--------------------------'
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 update && \
apt-get install -y subversion apt-get install -y subversion
fi fi
fi
# Display variables for troubleshooting # Display variables for troubleshooting
echo -e "Variables set:\\n\ echo -e "Variables set:\\n\

Loading…
Cancel
Save