]> git.llucax.com Git - z.facultad/75.08/llamadas.git/blobdiff - afinstal
Ya utiliza el antifraude.conf
[z.facultad/75.08/llamadas.git] / afinstal
index 72b55aa5c52fcae0af626d85b80559c606cf041d..6b86e327759554146365baed8d87040968cedcdb 100755 (executable)
--- a/afinstal
+++ b/afinstal
@@ -163,6 +163,7 @@ CONFDIR="${CURRDIR}/conf"
 INSTDIR="${CURRDIR}/inst"
 CONFFILE="${CONFDIR}/afinstal.conf"
 DEFAULTDIR=$CURRDIR
 INSTDIR="${CURRDIR}/inst"
 CONFFILE="${CONFDIR}/afinstal.conf"
 DEFAULTDIR=$CURRDIR
+OWNCONFDIR="$HOME/.antifraude/conf"
 havemonio=0
 haveconf=0
 havefraude=0
 havemonio=0
 haveconf=0
 havefraude=0
@@ -389,6 +390,10 @@ MARCA
        cp "$INSTDIR/oridesti.txt" "$CONFDIR"
 
        # Guardo los datos en el archivo de configuracion
        cp "$INSTDIR/oridesti.txt" "$CONFDIR"
 
        # Guardo los datos en el archivo de configuracion
+       ownconffile="$OWNCONFDIR/${comando%.pl}.conf"
+       if [ -f "$ownconffile" ]; then
+               rm -rf "$ownconffile"
+       fi
        userid=$LOGNAME
        fecha=$(date +%d/%m/%Y)
        case $comando in
        userid=$LOGNAME
        fecha=$(date +%d/%m/%Y)
        case $comando in
@@ -404,20 +409,25 @@ MARCA
                        havefraude=1;
                        userfraude=$userid;
                        fechafraude=$fecha;;
                        havefraude=1;
                        userfraude=$userid;
                        fechafraude=$fecha;;
-       esac    
+       esac
                
        changeLine "$CONFFILE" "$numline" "Comando $comando"
        numline=$(($numline+1))
        changeLine "$CONFFILE" "$numline" "BINDIR = $BINDIR"
                
        changeLine "$CONFFILE" "$numline" "Comando $comando"
        numline=$(($numline+1))
        changeLine "$CONFFILE" "$numline" "BINDIR = $BINDIR"
+       echo "BINDIR=\"$BINDIR\"" >> $ownconffile
        numline=$(($numline+1))
        changeLine "$CONFFILE" "$numline" "LOGDIR = $LOGDIR"
        numline=$(($numline+1))
        changeLine "$CONFFILE" "$numline" "LOGDIR = $LOGDIR"
+       echo "LOGDIR=\"$LOGDIR\"" >> $ownconffile
        numline=$(($numline+1))
        changeLine "$CONFFILE" "$numline" "LOGFILE = $LOGFILE"
        numline=$(($numline+1))
        changeLine "$CONFFILE" "$numline" "LOGFILE = $LOGFILE"
+       echo "LOGFILE=\"$LOGFILE\"" >> $ownconffile
        numline=$(($numline+1))
        changeLine "$CONFFILE" "$numline" "LOGSIZE = $LOGSIZE"
        numline=$(($numline+1))
        changeLine "$CONFFILE" "$numline" "LOGSIZE = $LOGSIZE"
+       echo "LOGSIZE=$LOGSIZE" >> $ownconffile
        numline=$(($numline+1))
        if [ "$comando" = "antifraude.pl" ]; then
                changeLine "$CONFFILE" "$numline" "DATADIR = $DATADIR"
        numline=$(($numline+1))
        if [ "$comando" = "antifraude.pl" ]; then
                changeLine "$CONFFILE" "$numline" "DATADIR = $DATADIR"
+               echo "DATADIR=\"$DATADIR\"" >> $ownconffile
                numline=$(($numline+1))
                changeLine "$CONFFILE" "$numline" "DATASIZE = "
                numline=$(($numline+1))
                numline=$(($numline+1))
                changeLine "$CONFFILE" "$numline" "DATASIZE = "
                numline=$(($numline+1))