blob: a293dab6ef99b97f9b90de12550e5211babcbcad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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"
|