aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-installer-sulix/install/setup
diff options
context:
space:
mode:
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"