]> git.llucax.com Git - z.facultad/75.08/llamadas.git/commitdiff
modificaciones recomendadas por luca, me falta resolver el tema de si ya hay algun...
authorNicolás Dimov <ndimov@gmail.com>
Mon, 4 Oct 2004 19:25:17 +0000 (19:25 +0000)
committerNicolás Dimov <ndimov@gmail.com>
Mon, 4 Oct 2004 19:25:17 +0000 (19:25 +0000)
AFINSTAL

index 87ec7a2f0624c94ec3ace8301e360576d44583e3..bc11c8edcd515e768190d68524e46e4778bb9857 100755 (executable)
--- a/AFINSTAL
+++ b/AFINSTAL
@@ -196,37 +196,37 @@ if [ -d "$PATH_GENERAL" ]; then
                fecha=$(date)
                for FILE in ANTIFRAUDE.PL AFICONF AFIMONIO
                do
-                       numlinea=`expr $linea + $i`
+                       numlinea=$(($linea+$i))
                        cat "$CONFDIR/afinstal.conf" | sed "$numlinea""s/.*/Comando $FILE/" > "$CONFDIR/afinstal.conf"
-                       i=`expr $i + 1`
+                       i=$(($i+1))
                        numlinea=`expr $linea + $i`
                        cat "$CONFDIR/afinstal.conf" | sed "$numlinea""s(.*(BINDIR = $BINDIR(" > "$CONFDIR/afinstal.conf"
-                       i=`expr $i + 1`
+                       i=$(($i+1))
                        numlinea=`expr $linea + $i`
                        cat "$CONFDIR/afinstal.conf" | sed "$numlinea""s(.*(LOGDIR = $LOGDIR(" > "$CONFDIR/afinstal.conf"
-                       i=`expr $i + 1`
+                       i=$(($i+1))
                        numlinea=`expr $linea + $i`
                        cat "$CONFDIR/afinstal.conf" | sed "$numlinea""s(.*(LOGNAME = $LOGNAME(" > "$CONFDIR/afinstal.conf"
-                       i=`expr $i + 1`
+                       i=$(($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`
+                               i=$(($i+1))
                                numlinea=`expr $linea + $i`
                                cat "$CONFDIR/afinstal.conf" | sed "$numlinea""s(.*(DATADIR = $DATADIR(" > "$CONFDIR/afinstal.conf"
-                               i=`expr $i + 1`
+                               i=$(($i+1))
                                numlinea=`expr $linea + $i`
                                cat "$CONFDIR/afinstal.conf" | sed "$numlinea""s(.*(DATASIZE = (" > "$CONFDIR/afinstal.conf"
                        fi              
-                       i=`expr $i + 1`
+                       i=$(($i+1))
                        numlinea=`expr $linea + $i`
                        cat "$CONFDIR/afinstal.conf" | sed "$numlinea""s(.*(USERID = $USER(" > "$CONFDIR/afinstal.conf"
-                       i=`expr $i + 1`
+                       i=$(($i+1))
                        numlinea=`expr $linea + $i`
                        cat "$CONFDIR/afinstal.conf" | sed "$numlinea""s(.*(FECINS = $fecha(" > "$CONFDIR/afinstal.conf"
-
+                       echo "i es igual a "$i
                        i=0
-                       linea=`expr $linea + 10`
+                       linea=$(($linea+10))
                done #for
        fi      #seleccion opcion
 fi #si esxiste la estructura de directorios.. FIXME si no existe, hay que crearlo