+ #inserto informacion de instalacion
+ echo "INSTDIR = $INSTDIR" >> "$CONFDIR/afinstal.conf"
+ echo "CONFDIR = $CONFDIR" >> "$CONFDIR/afinstal.conf"
+ for n in `seq 3 51`
+ do
+ echo "" >> "$CONFDIR/afinstal.conf"
+ done
+ linea=10
+ i=0
+ fecha=$(date)
+ for FILE in ANTIFRAUDE.PL AFICONF AFIMONIO
+ do
+ numlinea=`expr $linea + $i`
+ cat "$CONFDIR/afinstal.conf" | sed "$numlinea""s/.*/Comando $FILE/" > "$CONFDIR/afinstal.conf"
+ i=`expr $i + 1`
+ numlinea=`expr $linea + $i`
+ cat "$CONFDIR/afinstal.conf" | sed "$numlinea""s(.*(BINDIR = $BINDIR(" > "$CONFDIR/afinstal.conf"
+ i=`expr $i + 1`
+ numlinea=`expr $linea + $i`
+ cat "$CONFDIR/afinstal.conf" | sed "$numlinea""s(.*(LOGDIR = $LOGDIR(" > "$CONFDIR/afinstal.conf"
+ i=`expr $i + 1`
+ numlinea=`expr $linea + $i`
+ cat "$CONFDIR/afinstal.conf" | sed "$numlinea""s(.*(LOGNAME = $LOGNAME(" > "$CONFDIR/afinstal.conf"
+ i=`expr $i + 1`
+ numlinea=`expr $linea + $i`
+ cat "$CONFDIR/afinstal.conf" | sed "$numlinea""s(.*(LOGSIZE = $LOGSIZE(" > "$CONFDIR/afinstal.conf"
+ if [ "$FILE" == "ANTIFRAUDE.PL" ]; then
+ i=`expr $i + 1`
+ numlinea=`expr $linea + $i`
+ cat "$CONFDIR/afinstal.conf" | sed "$numlinea""s(.*(DATADIR = $DATADIR(" > "$CONFDIR/afinstal.conf"
+ i=`expr $i + 1`
+ numlinea=`expr $linea + $i`
+ cat "$CONFDIR/afinstal.conf" | sed "$numlinea""s(.*(DATASIZE = (" > "$CONFDIR/afinstal.conf"
+ fi
+ i=`expr $i + 1`
+ numlinea=`expr $linea + $i`
+ cat "$CONFDIR/afinstal.conf" | sed "$numlinea""s(.*(USERID = $USER(" > "$CONFDIR/afinstal.conf"
+ i=`expr $i + 1`
+ numlinea=`expr $linea + $i`
+ cat "$CONFDIR/afinstal.conf" | sed "$numlinea""s(.*(FECINS = $fecha(" > "$CONFDIR/afinstal.conf"
+
+ i=0
+ linea=`expr $linea + 10`
+ done
+
+