[Tutos-commits] CVS: tutos/debian postinst,1.3,1.4
Projects / CRM / PLM / Calendar / Tasks / SCRUM / Test / Inventory
Brought to you by:
gokohnert
From: Dimitri F. <ta...@us...> - 2002-07-26 11:55:17
|
Update of /cvsroot/tutos/tutos/debian In directory usw-pr-cvs1:/tmp/cvs-serv17632/debian Modified Files: postinst Log Message: Make install will create config.ping and lang_custom.p3 with a introduction on how to use that files. Index: postinst =================================================================== RCS file: /cvsroot/tutos/tutos/debian/postinst,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- postinst 26 Jul 2002 11:29:06 -0000 1.3 +++ postinst 26 Jul 2002 11:55:13 -0000 1.4 @@ -26,43 +26,13 @@ # care about config file tutosdir=/var/www/tutos - filename=config_default.pinc - if [ -r /etc/tutos/$filename ]; then - rm $tutosdir/php/config_default.pinc - ln -s /etc/tutos/$filename $tutosdir/php/$filename - fi - - filename=apache.conf - if [ -r /etc/tutos/$filename ]; then - rm $tutosdir/apache.conf - ln -s /etc/tutos/$filename $tutosdir/apache.conf - fi - - # now create a config.pinc with a help message - filename=config.pinc - if [ ! -r /etc/tutos/$filename ]; then - ( cat <<EOF -<? - /* Please override here the config_dafault.pinc settings. - */ -?> -EOF - ) > /etc/tutos/$filename - ln -s /etc/tutos/$filename $tutosdir/php/$filename - fi - - # now care about lang_custom.p3 - filename=lang_custom.p3 - if [ ! -r /etc/tutos/$filename ]; then - ( cat <<EOF -<? - /* You can redefine specific categories here. - */ -?> -EOF - ) > /etc/tutos/$filename - ln -s /etc/tutos/$filename $tutosdir/php/$filename - fi + for f in php/config_default.pinc apache.conf config.pinc lang_custom.p3 + do + if [ -r /etc/tutos/$f ]; then + [ -f $tutosdir/$f ] && rm $tutosdir/$f + ln -s /etc/tutos/$f $tutosdir/$f + fi + done ;; abort-upgrade|abort-remove|abort-deconfigure) |