From c0f79397dd75e03a7a40303f82926e8187697d07 Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Fri, 8 Mar 2019 23:32:47 +0100 Subject: Rev: 4455 --- mayor-orig/mayor-installer-sulix/install/setup | 38 ++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 mayor-orig/mayor-installer-sulix/install/setup (limited to 'mayor-orig/mayor-installer-sulix/install/setup') diff --git a/mayor-orig/mayor-installer-sulix/install/setup b/mayor-orig/mayor-installer-sulix/install/setup new file mode 100755 index 00000000..a293dab6 --- /dev/null +++ b/mayor-orig/mayor-installer-sulix/install/setup @@ -0,0 +1,38 @@ +#!/bin/bash +clear +echo "-------------------------------------------" +echo " MaYoR Setup " +echo "-------------------------------------------" + +MAYORDIR="/srv/mayor" +TMPDIR="/tmp" +TGZDIR="/root/mayor/tgz" +MYSQLROOTPW=$(tdbdump /var/lib/samba/private/secrets.tdb | grep -A 2 LDAP_BIND_PW | grep data | sed -e 's/\\00"//' -e 's/^.*"//') +VERSION="current" +SCHOOLSERVERCONF="/etc/sysconfig/schoolserver" +export SCHOOLSERVERCONF +export MAYORDIR +export TMPDIR +export TGZDIR +export MYSQLROOTPW +export VERSION + +# --------- Ez a main.conf-ban bent van - jobb lenne itt nem megadni... + +BACKUPDIR=/backup/mayor/ +export BACKUPDIR +BASEDN=$(grep LDAPBASE $SCHOOLSERVERCONF | sed -e 's/LDAPBASE="//' -e 's/"//') +export BASEDN + +function mypwgen() { eval 'head /dev/urandom | tr -dc A-Za-z0-9_ | head -c8'; } +export -f mypwgen + +echo -e "A MaYoR keretrendszer és elektronikus napló telepítője...\n" + +for f in install.d/* +do + echo -e "\n----------------------------------------------\n$f\n----------------------------------------------\n" + ./$f $@ +done + +echo -e "MaYoR (c) setup 2012.\n" -- cgit v1.2.3