From: opensides Date: Tue, 8 Jan 2008 19:01:49 +0000 (+0000) Subject: - Fix name to be like the others X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1c6337f4a28476a3a490849cb0c6dfec5eb2978f;p=gosa.git - Fix name to be like the others git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@8256 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/fix_config.sh b/fix_config.sh deleted file mode 100755 index b17fd7ab5..000000000 --- a/fix_config.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/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 -read -n1 -sp "Do you want to continue? (y/n)" answer -echo - -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 diff --git a/update-config b/update-config new file mode 100755 index 000000000..b17fd7ab5 --- /dev/null +++ b/update-config @@ -0,0 +1,30 @@ +#!/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 +read -n1 -sp "Do you want to continue? (y/n)" answer +echo + +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