summaryrefslogtreecommitdiffstats
path: root/client/shared/scripts/deployImage
diff options
context:
space:
mode:
authoradv <adv@uma.es>2011-05-08 20:05:38 +0000
committeradv <adv@uma.es>2011-05-08 20:05:38 +0000
commitd1967827d9a36524103c68c284b3716541bbb1c9 (patch)
tree5e369b0a98acdafe9ed4fa77b0fd720c28a4bdbb /client/shared/scripts/deployImage
parent5c44f8674b97203145fae755e0450c84717099f5 (diff)
version 1.0.1 #381 codigos error
git-svn-id: https://opengnsys.es/svn/branches/version1.0@1948 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/shared/scripts/deployImage')
-rwxr-xr-xclient/shared/scripts/deployImage15
1 files changed, 10 insertions, 5 deletions
diff --git a/client/shared/scripts/deployImage b/client/shared/scripts/deployImage
index 15392ec7..6d32893b 100755
--- a/client/shared/scripts/deployImage
+++ b/client/shared/scripts/deployImage
@@ -10,11 +10,16 @@ fi
#controlar param1 REPO
updateCache REPO $2.img $5 $6
-if [ $? != "0" ]
+RC=$?
+if [ "$RC" != "0" ]
then
- echo "fin del updateCache REPO $2.img $5 $6 con errores"
- exit 1
+ echo "fin del updateCache REPO $2.img $5 $6 con error $RC"
+ # RC=15 No hay cache
+ # RC=16 no hay espacio sufiente
+ exit $RC
+
else
- echo "comenzamos con restoreImage CACHE $2 $3 $4"
- restoreImage CACHE $2 $3 $4
+ echo "iniciando un ogRestore CACHE desde deployImage"
+ ogRestoreImage CACHE $2 $3 $4
+ ogExtendFs $3 $4
fi \ No newline at end of file