To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / extra / soundsoftware / scripted-deploy / vagrant / provision.d / 000-system-packages.sh @ 1586:d0d59d12db94

History | View | Annotate | Download (1.93 KB)

1
#!/bin/bash
2

    
3
set -e
4

    
5
if [ -x /usr/bin/yum ]; then
6

    
7
    # Assumption: CentOS 7
8

    
9
    # This doesn't work -- I got hung up on the problem of making a
10
    # sufficiently recent Ruby act as the system /usr/bin/ruby without
11
    # massively overcomplicating things, and decided not to persist
12
    # with it
13

    
14
    yum install -y epel-release centos-release-scl && \
15
        yum update -y && \
16
        yum install -y \
17
            httpd \
18
            httpd-devel \
19
            gcc \
20
            gcc-c++ \
21
            curl \
22
            doxygen \
23
            git \
24
            mercurial \
25
            mod_perl \
26
            postgresql \
27
            rh-ruby24 \
28
            rh-ruby24-ruby-devel \
29
            rh-ruby24-rubygems \
30
            rh-ruby24-rubygems-devel \
31
            logrotate
32

    
33
    if [ -f /usr/bin/ruby ]; then
34
        yum remove -y ruby
35
    fi
36

    
37
    cat > /etc/profile.d/enableruby24.sh <<EOF
38
#!/bin/bash
39
source scl_source enable rh-ruby24
40
EOF
41
    
42
else
43

    
44
    # Assumption: Ubuntu 16.04
45

    
46
    # This is the working one!
47

    
48
    apt-get update && \
49
        apt-get dist-upgrade -y && \
50
        apt-get install -y \
51
                ack-grep \
52
                apache2 \
53
                apache2-dev \
54
                apt-utils \
55
                build-essential \
56
                cron \
57
                curl \
58
                doxygen \
59
                exim4 \
60
                git \
61
                graphviz \
62
                imagemagick \
63
                libapache-dbi-perl \
64
                libapache2-mod-perl2 \
65
                libapr1-dev \
66
                libaprutil1-dev \
67
                libauthen-simple-ldap-perl \
68
                libcurl4-openssl-dev \
69
                libdbd-pg-perl \
70
                libpq-dev \
71
                libmagickwand-dev \
72
                libio-socket-ssl-perl \
73
                logrotate \
74
                mercurial \
75
                postgresql \
76
                rsync \
77
                ruby \
78
                ruby-dev \
79
                sudo
80

    
81
fi