exiv2/contrib/vms/setup.sh
Dan Čermák e9975c1457
[CI] Remove utils.source in the Vagrant provisioning scripts
=> we no longer need the shared volume, which is broken on Alpine Linux

(cherry picked from commit 07cb39bb06ef9d5cfb4100a6c8da66f509d067f5)
2019-02-09 12:58:43 +01:00

35 lines
724 B
Bash

#!/bin/bash
set -e
distro_id=$(grep '^ID=' /etc/os-release|awk -F = '{print $2}'|sed 's/\"//g')
case "$distro_id" in
'fedora')
dnf -y --refresh install python3-pip git
;;
'debian' | 'ubuntu')
apt-get install -y python3-pip git
;;
'arch')
pacman --noconfirm -S python-pip git
;;
'centos' | 'rhel')
yum -y install centos-release-scl-rh
yum clean all
yum -y install rh-python36-python-pip git
;;
'opensuse' | 'opensuse-tumbleweed')
zypper --non-interactive install python3-pip git
;;
*)
echo "Sorry, no predefined dependencies for your distribution exist yet"
exit 1
;;
esac