Skip to content
Snippets Groups Projects
Select Git revision
  • d50919161217af7286219d90db903998b5bf5551
  • master default protected
  • multiprocessing
  • experiment/clara
  • experiment/spec2B-poc
  • experiment/qivalio-poc
  • experiment/ertms
  • MAY-2023
  • FEB-2023
  • EGC-2023
  • 0.2.1
  • v0.2.0
  • v0.1.2
13 results

net.py

Blame
  • installWebServer.sh NaN GiB
    #!/bin/bash - 
    #
    # Copyright (C) 2017  Tetras Libre <admin@tetras-libre.fr>
    # Author: Curt, Sebastien <sebastien.curt@tetras-libre.fr>
    #
    # This program is free software: you can redistribute it and/or modify # it
    # under the terms of the GNU General Public License as published by # the Free
    # Software Foundation, either version 3 of the License, or # (at your option)
    # any later version.
    #
    # This program is distributed in the hope that it will be useful, # but WITHOUT
    # ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or
    # FITNESS FOR A PARTICULAR PURPOSE.  See the # GNU General Public License for
    # more details.
    #
    # You should have received a copy of the GNU General Public License # along
    # with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    set -o nounset                              # Treat unset variables as an error
    
    apt-get update
    
    if [ "${WEB_SERVER}" == "apache2" ]
    then
        export WEB_SERVER_PACKAGES="apache2"
    else
        export WEB_SERVER_PACKAGES="nginx-extras php-fpm"
    fi
    
    DEBIAN_FRONTEND='noninteractive' apt-get -qq install \
        php \
        php-apcu \
        php-bcmath \
        php-curl \
        php-gd \
        php-intl \
        php-mysql \
        ${WEB_SERVER_PACKAGES}