summaryrefslogtreecommitdiffstats
path: root/admin/Interface
diff options
context:
space:
mode:
authoririna <irinagomez@us.es>2013-07-01 12:10:44 +0000
committeririna <irinagomez@us.es>2013-07-01 12:10:44 +0000
commit097bc95915f95d24ca85720dd2b0a5f9d45c83e5 (patch)
tree34dde557a590844809dc747370e9d66d88169ae8 /admin/Interface
parentf65c8b8600e980261d1fb1210e348546b2636f01 (diff)
#565 incluye opcion de rsync --whole-file + interfaz de la consola con syncronizadas2
git-svn-id: https://opengnsys.es/svn/branches/version1.0@3946 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/Interface')
-rwxr-xr-xadmin/Interface/CrearImagenBasica18
1 files changed, 18 insertions, 0 deletions
diff --git a/admin/Interface/CrearImagenBasica b/admin/Interface/CrearImagenBasica
index d98972e9..bef8e546 100755
--- a/admin/Interface/CrearImagenBasica
+++ b/admin/Interface/CrearImagenBasica
@@ -45,3 +45,21 @@
fi
+ if [ $7 -eq 2 ]; then
+ # Sincronizacion2
+ flag=$5
+ WHOLE=${flag:0:1}
+ DELFILE=${flag:1:1}
+ COMPRESS=${flag:2:1}
+
+ # Nota los valores se pasan como variables de entorno,
+ # la idea es que mas adelante vayan en el fichero PXE.
+ [ $WHOLE -eq 1 ] && export ogrsyncw=true || export ogrsyncw=false
+ [ $DELFILE -eq 1 ] && export ogrsyncdel=true || export ogrsyncdel=false
+ [ $COMPRESS -eq 1 ] && export ogrsyncz=true || export ogrsyncz=false
+
+ [ "$4" == "0.0.0.0" ] && DEST="CACHE" || DEST="REPO"
+
+ createBaseImage $1 $2 $DEST "$3"
+
+ fi