aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-installer-orig/install.d/05checkdeb.sh
diff options
context:
space:
mode:
authorM.Gergo2019-03-08 20:50:48 +0100
committerM.Gergo2019-03-08 20:50:48 +0100
commit3dab26c6797b32926287f22a041380080551060b (patch)
treebb4ba41398083a054e956e25f2d8c72bcdd0a7a0 /mayor-installer-orig/install.d/05checkdeb.sh
parentf70027ffbedce10f412868a7bf9b0b67b113f1b1 (diff)
downloadmayor-3dab26c6797b32926287f22a041380080551060b.tar.gz
mayor-3dab26c6797b32926287f22a041380080551060b.zip
pici rendrakás
Diffstat (limited to 'mayor-installer-orig/install.d/05checkdeb.sh')
-rwxr-xr-xmayor-installer-orig/install.d/05checkdeb.sh86
1 files changed, 0 insertions, 86 deletions
diff --git a/mayor-installer-orig/install.d/05checkdeb.sh b/mayor-installer-orig/install.d/05checkdeb.sh
deleted file mode 100755
index 56c0e55d..00000000
--- a/mayor-installer-orig/install.d/05checkdeb.sh
+++ /dev/null
@@ -1,86 +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
- "
- fi
- exit 255;
-fi
-
-if [[ "x${RELEASE}" =~ ^x9.* ]]
-then
- PKGS="apache2 php php-json php-mysql php-ldap php-mbstring php-mcrypt php-curl mariadb-server-10.1 recode texlive texlive-fonts-extra texlive-latex-extra texlive-binaries texlive-xetex ntp wget ssl-cert ssh pwgen texlive-lang-european"
-else
- PKGS="apache2 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 <<EOF
-A rendszer futásához szükséges csomagok ellenőrzése
-
-Ebben a lépésben ellenőrizheti és telepítheti a rendszer működéséhez
-szükséges Debian/Ubuntu csomagokat:
-
-$PKGS
-
-EOF
-
-read -n 1 -p "Ellenőrizzem a deb csomagokat? (i/N)" -s DO
-if [ "$DO" != "i" ]; then echo -e "\nA függőségek ellenőrzését kihagytam.\n"; exit 1; fi
-
-echo -e "\nFüggőségek ellenőrzése (dpkg): "
-MISSING=""
-for pkg in $PKGS
-do
- echo -n " $pkg ... "
- STAT=`dpkg -l $pkg | grep $pkg | cut -f 1 -d ' '`
- if [ "$STAT" == "ii" ]; then
- echo ok
- else
- echo "még nincs telepítve"
- MISSING="$MISSING $pkg"
- fi
-done
-if [ "$MISSING" != "" ]; then
- echo Még nem telepített csomagok: $MISSING
- read -n 1 -p "Telepítsem? (i/N)" -s DO
- if [ "$DO" != "i" ]; then echo " ok, kiléptem..."; exit 1; fi
- apt-get update
- apt-get -m -f install $MISSING
-fi