aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-installer-sulix/install/setup
diff options
context:
space:
mode:
authorM.Gergo2019-03-08 23:32:47 +0100
committerM.Gergo2019-03-08 23:32:47 +0100
commitc0f79397dd75e03a7a40303f82926e8187697d07 (patch)
treee945a10ef6479e0f8720ad9cd4947b6a85b78d6e /mayor-orig/mayor-installer-sulix/install/setup
parentf51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0 (diff)
downloadmayor-c0f79397dd75e03a7a40303f82926e8187697d07.tar.gz
mayor-c0f79397dd75e03a7a40303f82926e8187697d07.zip
Rev: 4455
Diffstat (limited to 'mayor-orig/mayor-installer-sulix/install/setup')
-rwxr-xr-xmayor-orig/mayor-installer-sulix/install/setup38
1 files changed, 38 insertions, 0 deletions
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"