-
Notifications
You must be signed in to change notification settings - Fork 32
/
bootstrap.sh
executable file
·42 lines (39 loc) · 1.49 KB
/
bootstrap.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
# # Alpine
# if [ -f /etc/alpine-release ]; then
# sudo apk update && \
# sudo apk add python
# fi
# # Arch
# if [ -f /etc/arch-release ]; then
# sudo pacman -Sy --noconfirm ca-certificates glibc libffi python \
# python-boto python-pyopenssl python-pip python-setuptools
# fi
# # Debian/Ubuntu
# if [ -f /etc/debian_version ]; then
# test -e /usr/bin/python || (sudo apt-get update && sudo apt-get -y install python-minimal)
# fi
# # RHEL
# if [ -f /etc/redhat-release ]; then
# if [ -f /etc/os-release ]; then
# os_name="$(awk -F= '/^NAME/{ print $2 }' /etc/os-release | sed 's/"//g')"
# os_version_id="$(awk -F= '/^VERSION_ID/{ print $2}' /etc/os-release | sed 's/"//g')"
# if [[ $os_name = "Fedora" ]]; then
# if [[ $os_version_id -le 21 ]]; then
# sudo yum -y update
# sudo yum -y install dnf
# fi
# sudo dnf -y install python-devel python-dnf
# sudo dnf -y groupinstall "Development Tools"
# else
# if [[ $os_version_id -lt 8 ]]; then
# sudo yum -y install python-devel
# sudo yum -y groupinstall "Development Tools"
# else
# sudo yum -y install platform-python-devel
# sudo yum -y groupinstall "Development Tools"
# test -e /usr/bin/python || (sudo yum -y install python3 && sudo alternatives --set python /usr/bin/python3)
# fi
# fi
# fi
# fi