#!/bin/sh CONF=/etc/gosa/gosa.conf cat << EOF This script will take your current $CONF and will update the menu and tab tags. It will not touch the parts you have touched between the main tabs. A backup copy is created. EOF printf "Do you want to continue? (y/n) " "$answer" read answer if [ "$answer" != "y" -a "$answer" != "Y" ]; then echo "Aborted." echo exit 1 fi if [ ! -f $CONF ]; then echo "Can't find $CONF Aborted." echo exit 1 fi cp $CONF $CONF.orig sed '/
/d;/<\/conf>/d' gosa.conf > $CONF sed -n '/
/p' $CONF.orig >> $CONF echo '' >> $CONF