From 9ae3d3fbf3c98cbc68158ae833e6bbca133f7c7b Mon Sep 17 00:00:00 2001 From: cajus Date: Tue, 10 Jul 2007 12:56:49 +0000 Subject: [PATCH] * Ok. Re-added fix_config.sh, because it changes code. * Updated DEVEL guide git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6811 594d385d-05f5-0310-b6e9-bd551577e9d8 --- DEVEL | 18 ++++++++++++------ fix_config.sh | 30 ++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 6 deletions(-) create mode 100755 fix_config.sh diff --git a/DEVEL b/DEVEL index 76be99aa0..47faf5f6d 100644 --- a/DEVEL +++ b/DEVEL @@ -1,9 +1,8 @@ * How to get plugged in -Lets explain how to create a simple GOsa plugin. The example shows a dummy plugin which is not -directly related with LDAP. Independently of beeing an LDAP style or LDAP unrelated plugin, you -may start a new plugin, by creating a new directory below the plugin directory structure. To be up to -date, get a fresh SVN checkout: +Independently of beeing an LDAP style or LDAP unrelated plugin, you may start a new plugin, +by creating a new directory below the plugin directory structure. To be up to date, get a +fresh SVN checkout: Change to the directory which will contain your GOsa checkout, then get the source: @@ -19,8 +18,14 @@ for the bleeding edge development tree. The gosa directory will contain your initial checkout now. In order to update from SVN you simply can call "svn up". -Now you've an up to date GOsa. Note that there may be most obviously something brokein if -you use trunk. Continue by choosing a name and creating the directories: +Now you've an up to date GOsa. Note that there may be most obviously something broken if +you use trunk. + + +* First example + +Lets explain how to create a simple GOsa plugin. The example shows a dummy plugin which is not +directly related with LDAP. # cd plugins/addons # mkdir dummyplug && cd dummyplug @@ -127,3 +132,4 @@ Now add the following entry to your Addons section in gosa.conf: After logging into GOsa, you'll see your plugin in the addons section. + diff --git a/fix_config.sh b/fix_config.sh new file mode 100755 index 000000000..b17fd7ab5 --- /dev/null +++ b/fix_config.sh @@ -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 -- 2.30.2