summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xadmin/Interface/CrearSoftIncremental10
-rwxr-xr-xadmin/Interface/RestaurarSoftIncremental4
2 files changed, 7 insertions, 7 deletions
diff --git a/admin/Interface/CrearSoftIncremental b/admin/Interface/CrearSoftIncremental
index fd06b2ec..c19e86f0 100755
--- a/admin/Interface/CrearSoftIncremental
+++ b/admin/Interface/CrearSoftIncremental
@@ -61,8 +61,8 @@ DIFFEXT=".diff"
echo "$3" | tee -a $OGLOGSESSION $OGLOGFILE
[ "$4" == "0.0.0.0" ] && DEST="CACHE" || DEST="REPO"
-echo createDiffImage "$1" "$2" "$DEST" "$3" | tee -a $OGLOGSESSION $OGLOGFILE
-echo 1: "$1" 2: "$2" 3: "$3" 4: "$4" 5: $5 6: $6 7: $7 i| tee -a $OGLOGSESSION $OGLOGFILE
+#echo createDiffImage "$1" "$2" "$DEST" "$3" | tee -a $OGLOGSESSION $OGLOGFILE
+#echo 1: "$1" 2: "$2" 3: "$3" 4: "$4" 5: $5 6: $6 7: $7 i| tee -a $OGLOGSESSION $OGLOGFILE
# Si DELIMG = 0 borramos imagen del destino.
if [ $DELIMG -eq 1 ]; then
@@ -71,13 +71,13 @@ fi
# Creamos la imagen.
-createDiffImage "$1" "$2" "$DEST" "$3" &>$OGLOGSESSION
+createDiffImage "$1" "$2" "$DEST" "$3" "$5" &>$OGLOGSESSION
# Si COPYCACHE = 1 copiamos la imagen a la cache
if [ $COPYCACHE -eq 1 ]; then
# Si BORRACACHE=1 Borramos imagen de cache
- [ $BORRACACHE -eq 1 ] && CACHEFILE=$(ogGetPath "CACHE" "$3$DIFFEXT") && rm -rf $CACHEFILE
- updateCache "REPO" /"$3.diff" UNICAST &>>$OGLOGSESSION
+ [ $BORRACACHE -eq 1 ] && CACHEFILE=$(ogGetPath "CACHE" "$5$DIFFEXT") && rm -rf $CACHEFILE
+ updateCache "REPO" /"$5.diff" UNICAST &>>$OGLOGSESSION
fi
diff --git a/admin/Interface/RestaurarSoftIncremental b/admin/Interface/RestaurarSoftIncremental
index 0bf0080f..01745c90 100755
--- a/admin/Interface/RestaurarSoftIncremental
+++ b/admin/Interface/RestaurarSoftIncremental
@@ -63,8 +63,8 @@ if [ $COPYCACHE -eq 1 ]; then
fi
if [ $DELCACHE -eq 1 ]; then
echo "Borramos imagen de la cache" &>>$OGLOGSESSION
- CACHEFILE=$(ogGetPath "CACHE" "$3$DIFFEXT") && rm -rf $CACHEFILE
+ CACHEFILE=$(ogGetPath "CACHE" "$5$DIFFEXT") && rm -rf $CACHEFILE
fi
-restoreDiffImage "$ORIG" "$3" "$1" "$2" &>>$OGLOGSESSION
+restoreDiffImage "$ORIG" "$5" "$1" "$2" &>>$OGLOGSESSION