Script d'installation du paquetage "apache"


echo "Updating etc/rc.config..."
if [ -x bin/fillup ] ; then
  bin/fillup -q -d = etc/rc.config var/adm/fillup-templates/rc.config.apache
else
  echo "ERROR: fillup not found. This should not happen. Please compare"
  echo "etc/rc.config and etc/rc.config.apache and update by hand."
fi
RC_CONFIG=etc/rc.config
test -e $RC_CONFIG || exit 1
. $RC_CONFIG
test -e 
if  test "$START_HTTPD" = no && test "$START_HTTPSD" = yes  ; then
	echo -n "removing START_HTTPD from etc/rc.config ..."
	cat $RC_CONFIG | \
	sed -e 's+START_HTTPD=.*+START_HTTPD=yes+' \
	-e 's+START_HTTPSD=.*++' > tmp_file
	mv tmp_file $RC_CONFIG
	echo "done"
fi
mkdir -p var/log
touch var/log/httpd.access_log
touch var/log/httpd.error_log
touch var/log/ssl_scache.dir
touch var/log/ssl_scache.pag
chown wwwrun var/log/ssl_scache.{dir,pag}
chmod 600    var/log/ssl_scache.{dir,pag}
if test -e httpd; then
   mkdir -p var/adm/notify/messages
cat << EOT > var/adm/notify/messages/apache-changes
Hi,
die Apache-Konfiguration hat sich (wiedermal...) veraendert. Die
den Server betreffenden Dateien finden sich jetzt in folgenden
Verzeichnissen:
        /etc/httpd                      -> Konfigurationsdateien
        /var/log/httpd                  -> Protokolldateien
        /var/run/httpd.pid              -> PID des Servers
        /usr/local/httpd                -> Server-Root
        /sbin/init.d/apache             -> Start/Stop-Skript
The Apache-Configuration has changed. Please look into these directories
to find server related files:
        /etc/httpd                       -> Configfiles
        /var/log/httpd                   -> Logfiles
        /var/run/httpd.pid               -> Server-PID
        /usr/local/httpd                 -> Server-Root
        /sbin/init.d/apache              -> Start/Stop-Script
Ciao,
        Rolf H.
EOT
fi
if test -e var/log/httpd.access_log ; then
   mkdir -p var/adm/notify/messages
cat << EOT > var/adm/notify/messages/apache-changes2
Hi,
the apache configuration has changed one more time. The logfiles have
been moved to the 
	/var/log/httpd
subdirectory, as to many logfiles (especially when working with many
virtual servers) can be a mess in /var/log
Ciao,
        Rolf H.
EOT
fi


(c) SuSE - Dernière mise à jour: 31.03.2000 12:55;