From 3dab26c6797b32926287f22a041380080551060b Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Fri, 8 Mar 2019 20:50:48 +0100 Subject: pici rendrakás --- .../fcgi_install.d/05checkdeb.sh | 106 --------------------- 1 file changed, 106 deletions(-) delete mode 100755 mayor-installer-fcgi-mod/fcgi_install.d/05checkdeb.sh (limited to 'mayor-installer-fcgi-mod/fcgi_install.d/05checkdeb.sh') diff --git a/mayor-installer-fcgi-mod/fcgi_install.d/05checkdeb.sh b/mayor-installer-fcgi-mod/fcgi_install.d/05checkdeb.sh deleted file mode 100755 index 5b5e1828..00000000 --- a/mayor-installer-fcgi-mod/fcgi_install.d/05checkdeb.sh +++ /dev/null @@ -1,106 +0,0 @@ -#!/bin/bash -# -DEBIAN=false; -UBUNTU=false; -if [ $(which lsb_release || echo "notinstalled") == "notinstalled" ] -then - ISSUE=$(cat /etc/issue | cut -d " " -f 1) - if [ "x${ISSUE}" == "xDebian" ]; then - DEBIAN=true; - RELEASE=$(cat /etc/issue | cut -d " " -f 3) - elif [ "x${ISSUE}" == "xUbuntu" ]; then - UBUNTU=true; - RELEASE=$(cat /etc/issue | cut -d " " -f 2) - fi -else - DISTRIBUTOR=$(lsb_release -i -s) - RELEASE=$(lsb_release -r -s) - if [ "x${DISTRIBUTOR}" == "xDebian" ]; then - DEBIAN=true; - elif [ "x${DISTRIBUTOR}" == "xUbuntu" ]; then - UBUNTU=true; - fi -fi -echo "Debian:" ${DEBIAN} -echo "Ubuntu:" ${UBUNTU} -echo "Version:" ${RELEASE} - -TEST=$(grep contrib /etc/apt/sources.list) -if [ "$TEST" == "" ] -then - echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" - echo "Az apt sources.list módosítása szükséges!" - if [ DEBIAN ]; then - echo "Debian Jessie (8) esetén például: - deb http://ftp.hu.debian.org/debian/ jessie main contrib non-free - deb http://security.debian.org/ jessie/updates main contrib non-free - deb http://ftp.hu.debian.org/debian/ jessie-updates main contrib non-free - -Debian 9 esetén például: - deb http://ftp.hu.debian.org/debian/ stretch main contrib non-free - deb http://security.debian.org/debian-security stretch/updates main contrib non-free - deb http://ftp.hu.debian.org/debian/ stretch-updates main contrib non-free - \n" - - read -n 1 -p "Hozzáadhatom? (egyelőre csak Debian9 esetén működik) (i/N)" -s DO - if [ "$DO" != "i" ]; then echo -e "\nA hozzáadást kihagytam.\n"; exit 255; fi - - if [[ "x${RELEASE}" =~ ^x9.* ]]; then - echo -e "#mayor miatt is: -deb http://ftp.hu.debian.org/debian/ stretch contrib non-free -deb http://security.debian.org/debian-security stretch/updates contrib non-free -deb http://ftp.hu.debian.org/debian/ stretch-updates contrib non-free" >> /etc/apt/sources.list - - fi - echo -e "\n ---- csomaglista frissítése ---- \n" - apt update ## frisítés - echo -e "\n ------------- kész ------------- \n" - - fi -# exit 255; -fi - -if [[ "x${RELEASE}" =~ ^x9.* ]] -then - PKGS="apache2 apache2-suexec-custom libapache2-mod-fcgid php-cgi php php-json php-mysql php-ldap php-mbstring php-mcrypt php-curl mariadb-server recode texlive texlive-fonts-extra texlive-latex-extra texlive-binaries texlive-xetex ntp wget ssl-cert ssh pwgen texlive-lang-european" -else - PKGS="apache2 apache2-suexec-custom libapache2-mod-fcgid php5-cgi php5 php5-json php5-mysqlnd php5-ldap php5-mcrypt php5-curl mysql-server recode texlive texlive-fonts-extra texlive-latex-extra texlive-binaries texlive-xetex ttf-mscorefonts-installer ntp wget ssl-cert ssh pwgen texlive-lang-european texlive-lang-hungarian" -fi - -if [ "$1" == "--no-deb" ]; then - exit 1 -fi - -cat <