diff options
author | Irina Gómez <irinagomez@us.es> | 2018-11-13 11:50:44 +0100 |
---|---|---|
committer | Irina Gómez <irinagomez@us.es> | 2018-11-13 11:50:44 +0100 |
commit | 348b5c973a033baec95cb0bd460594ab117ad5ce (patch) | |
tree | 2840974ea0d486d9241fc32abcb157480866fa28 /client/engine/Net.lib | |
parent | fc57da80612c925beaf3599d5d2e5072bbb178b5 (diff) |
#855 #679 Los script de crear o restaurar imágenes sincronizadas permiten cambiar de repositorio. ogChangeRepo: se resuelve errata por la que no tomaba los permisos (ro|rw) del repositorio.
Diffstat (limited to 'client/engine/Net.lib')
-rwxr-xr-x | client/engine/Net.lib | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/engine/Net.lib b/client/engine/Net.lib index 219d6d46..d8f272b1 100755 --- a/client/engine/Net.lib +++ b/client/engine/Net.lib @@ -37,6 +37,9 @@ if [ $# -lt 1 ]; then fi +# Opciones de montaje: lectura o escritura +mount |grep "ogimages.*rw," &>/dev/null && RW=",rw" || RW=",ro" + # Si REPO tomamos el repositorio y la unidad organizativa actual REPO=$(ogGetRepoIp) OGUNIT="$(df | awk -F " " '/ogimages/ {sub("//.*/ogimages","",$1); sub("/","",$1); print $1}')" @@ -53,9 +56,6 @@ umount $OGIMG [ "$2" == "" ] && SRCIMG="ogimages" || SRCIMG="ogimages/$2" eval $(grep "OPTIONS=" /scripts/ogfunctions) -# Opciones de montaje: lectura o escritura -mount |grep "ogimages.*rw," &>/dev/null && RW=",rw" || RW=",ro" - ogEcho session log "$MSG_HELP_ogChangeRepo $NEWREPO ${2%/}" ogConnect $NEWREPO $ogprotocol $SRCIMG $OGIMG $RW |