/usr/bin/version_aktualisieren
#!/bin/sh
echo "ISO-Image von desktop4education erstellen..."
echo " d4e-Pakete neu erstellen? (j/n)"
read ANSWER1
echo " s4e-Pakete neu erstellen? (j/n)"
read ANSWER2
case $ANSWER1 in
j|J|y|Y) create_d4e_packages ;;
*) echo " OK, d4e-Pakete werden nicht neu erstellt." ;;
esac
echo
case $ANSWER2 in
j|J|y|Y) create_s4e_packages ;;
*) echo " OK, s4e-Pakete werden nicht neu erstellt." ;;
esac
echo
DATEI=/origdvd/VERSION
SOURCE=/media/disk/d4e2008/origdvd
VERSION_NR=$((`cat $DATEI | grep Version | awk '{print $3}'`+1))
ZIEL=/root/d4e2008.iso
CURRENTDIR=`pwd`
cd $SOURCE
echo "desktop4education 2008" > $DATEI
echo "Version RC $VERSION_NR" >> $DATEI
date >> $DATEI
echo "============================="
cat $DATEI
echo "============================="
echo "Erstelle ISO-Image..."
mkisofs -v -R -b boot/grub/stage2_eltorito -r -J -l -allow-leading-dots -V d4e2008 -publisher "http://d4e.at, support@d4e.at" -p "d4e Team Peer Weiz, d4e@bgweiz.at" -no-emul-boot -boot-load-size 4 -boot-info-table -o $ZIEL $SOURCE
echo "Image geschrieben nach: $ZIEL"
cd $CURRENTDIR
echo "Fertig!"
exit
/usr/bin/create_d4e_packages
#!/bin/sh
CURRENTDIR=`pwd`
echo "======================================="
echo "Erzeuge Pakete für desktop4education..."
echo "======================================="
cd /d4e/files
echo -n " Erzeuge d4e-kerberos.tar.gz "
tar cfz ../d4e-kerberos.tar.gz etc/init.d etc/opt etc/sysconfig etc/*.conf etc/krb5.keytab sbin etc/profile.d/ etc/hosts
echo " Fertig!"
echo -n " Erzeuge d4e-custom.tar.gz "
tar cfz ../d4e-custom.tar.gz root etc/bootsplash opt/gnome usr/share usr/lib sbin/ usr/sbin/
echo " Fertig!"
echo -n " Erzeuge d4e-varlibd4e.tar.gz "
tar cfz ../d4e-varlibd4e.tar.gz var/lib/d4e
echo " Fertig!"
echo "======================================="
echo "Kopiere Pakete auf DVD..."
echo "======================================="
echo -n " d4e-kerberos.tar.gz "
cp /d4e/d4e-kerberos.tar.gz /origdvd/d4e
echo " Fertig!"
echo -n " d4e-custom.tar.gz "
cp /d4e/d4e-custom.tar.gz /origdvd/d4e
echo " Fertig!"
echo -n " d4e-varlibd4e.tar.gz "
cp /d4e/d4e-varlibd4e.tar.gz /origdvd/d4e
echo " Fertig!"
echo "======================================="
echo "Pakete erzeugt und kopiert."
echo "======================================="
cd $CURRENTDIR
exit
/usr/bin/create_s4e_packages
#!/bin/sh
CURRENTDIR=`pwd`
echo "========================================="
echo "Erzeuge Pakete für server4education..."
echo "========================================="
cd /s4e/files
echo -n " Erzeuge s4e-apache.tar.gz "
tar cfz ../s4e-apache.tar.gz etc/apache2 var/lib/mysql srv etc/sysconfig/apache2
echo " Fertig!"
echo -n " Erzeuge s4e-custom.tar.gz "
tar cfz ../s4e-custom.tar.gz root etc/bootsplash opt/gnome usr/share
echo " Fertig!"
echo -n " Erzeuge s4e-dhcp.tar.gz "
tar cfz ../s4e-dhcp.tar.gz etc/sysconfig/dhcpd etc/dhcpd.conf
echo " Fertig!"
echo -n " Erzeuge s4e-kerberos.tar.gz "
tar cfz ../s4e-kerberos.tar.gz etc/{hosts,krb5.conf,krb5.keytab} var/lib/kerberos
echo " Fertig!"
echo -n " Erzeuge s4e-ldap.tar.gz "
tar cfz ../s4e-ldap.tar.gz etc/openldap var/lib/ldap
echo " Fertig!"
echo -n " Erzeuge s4e-nfsserver.tar.gz"
tar cfz ../s4e-nfsserver.tar.gz etc/init.d/boot.local etc/sysconfig/nfs etc/{exports,gssapi_mech.conf,idmapd.conf}
echo " Fertig!"
echo -n " Erzeuge s4e-samba.tar.gz "
tar cfz ../s4e-samba.tar.gz etc/profile.d/d4e.sh etc/samba var/lib/{d4e,s4e,samba}/
echo " Fertig!"
echo "========================================="
echo "Kopiere Pakete auf DVD..."
echo "========================================="
echo -n " s4e-apache.tar.gz "
cp /s4e/s4e-apache.tar.gz /origdvd/s4e
echo " Fertig!"
echo -n " s4e-custom.tar.gz "
cp /s4e/s4e-custom.tar.gz /origdvd/s4e
echo " Fertig!"
echo -n " s4e-dhcp.tar.gz "
cp /s4e/s4e-dhcp.tar.gz /origdvd/s4e
echo " Fertig!"
echo -n " s4e-kerberos.tar.gz "
cp /s4e/s4e-kerberos.tar.gz /origdvd/s4e
echo " Fertig!"
echo -n " s4e-ldap.tar.gz "
cp /s4e/s4e-ldap.tar.gz /origdvd/s4e
echo " Fertig!"
echo -n " s4e-nfsserver.tar.gz "
cp /s4e/s4e-nfsserver.tar.gz /origdvd/s4e
echo " Fertig!"
echo -n " s4e-samba.tar.gz "
cp /s4e/s4e-samba.tar.gz /origdvd/s4e
echo " Fertig!"
echo "========================================="
echo "Pakete erzeugt und kopiert."
echo "========================================="
cd $CURRENTDIR
exit