#!/bin/sh # Installationsroutine für den Klett-Server auf dem c't/ODS-Schulserver # "Arktur" # Nutzung gemäss der GNU Public License # $Id: install-Arktur,v 1.2 2005/10/20 17:57:53 HHullen Exp $ # $Log: install-Arktur,v $ # Revision 1.2 2005/10/20 17:57:53 HHullen # weitere Absicherung # # Revision 1.1 2005/10/20 17:46:32 HHullen # Start # # LANG=de_DE.utf8 # export LANG # Die Umlaute in den Informationstexten erscheinen auch damit nicht cd $(dirname $0) Ziel=/opt mkdir -p $Ziel set -- $(df $Ziel | tail -1) Frei=$4 test $Frei -ge 800000 || { echo " Im Zielverzeichnis \"$Ziel\" ist nicht genug Platz. Ich breche deshalb die Installation ab. " exit 1 } Library=libstdc++-libc6.1-1.so.2 ldconfig -v | grep -q "$Library" test $? -eq 0 || { Platz=$(locate "$Library" | head -1) test "$Platz" || { echo " Die Library \"$Library\" fehlt auf diesem Rechner. Ich breche deshalb ab. " exit 1 } echo $(dirname $Platz) >> /etc/ld.so.conf ldconfig } cp libcwait.so /usr/lib LD_PRELOAD=/usr/lib/libcwait.so ./setup.bin -console #