summaryrefslogtreecommitdiffstats
path: root/client/engine/Net.lib
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2018-03-09 08:44:43 +0000
committerramon <ramongomez@us.es>2018-03-09 08:44:43 +0000
commit4af842ab26efae313348b10b3daa151c08e3b3c1 (patch)
tree177b1b125c623c10f7796c384fd7062310dfbf73 /client/engine/Net.lib
parent73354ee4c4610a4a09716fadfd4c1d7d8d2e6973 (diff)
#730: Congelar correcciones de versiĆ³n 1.1.0, incluyendo cambios en ticket:595.opengnsys-1.1.0
git-svn-id: https://opengnsys.es/svn/tags/opengnsys-1.1.0@5652 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/engine/Net.lib')
-rwxr-xr-xclient/engine/Net.lib6
1 files changed, 4 insertions, 2 deletions
diff --git a/client/engine/Net.lib b/client/engine/Net.lib
index 17c932d2..4b3faad9 100755
--- a/client/engine/Net.lib
+++ b/client/engine/Net.lib
@@ -38,7 +38,7 @@ fi
# Si REPO tomamos el repositorio y la unidad organizativa actual
REPO=$(ogGetRepoIp)
-OGUNIT="$(df | awk -F " " '/oglog/ {sub("//.*/oglog","",$1); sub("/","",$1); print $1}')"
+OGUNIT="$(df | awk -F " " '/ogimages/ {sub("//.*/ogimages","",$1); sub("/","",$1); print $1}')"
# Parametros de entrada. Si $1 = "REPO" dejo el repositorio actual
[ "${1^^}" == "REPO" ] && NEWREPO="$REPO" || NEWREPO="${1}"
@@ -51,7 +51,9 @@ source /scripts/ogfunctions
umount $OGIMG
[ "$2" == "" ] && SRCIMG="ogimages" || SRCIMG="ogimages/$2"
eval $(grep "OPTIONS=" /scripts/ogfunctions)
-[ "$ogactiveadmin" == "true" ] && RW=",rw" || RW=",ro"
+
+# 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