summaryrefslogtreecommitdiffstats
path: root/admin/Interface
diff options
context:
space:
mode:
authoririna <irinagomez@us.es>2013-03-26 11:44:13 +0000
committeririna <irinagomez@us.es>2013-03-26 11:44:13 +0000
commitd54a57d6be54e1a5f27530d48c128cc587c9ddb6 (patch)
tree80f7acb9bd32ddce89c2ec2ba788f0b5eab15e4a /admin/Interface
parent765826bafd1490597a60c8c4d4a482715f918adb (diff)
#565 sincronizadas interfaz consola correccion error en argumentos
git-svn-id: https://opengnsys.es/svn/branches/version1.0@3715 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/Interface')
-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