summaryrefslogtreecommitdiffstats
path: root/client/shared/etc/preinit/mountrepo.sh
diff options
context:
space:
mode:
authoririna <irinagomez@us.es>2015-12-18 09:30:02 +0000
committeririna <irinagomez@us.es>2015-12-18 09:30:02 +0000
commit7cf3d390ba5fa321d7484fecd9279d408fb41164 (patch)
tree5aa33325d46f0cead828712773408a5e4b4df292 /client/shared/etc/preinit/mountrepo.sh
parent17640b6336356a639ab64b3ede33facdba7fbb9c (diff)
#678 Propiedades entidad: Al modificar la opcion de separar o no el directorio de las OU se muestra mensaje de aviso. script mountrepo para montar las unidades organizativas separadas
git-svn-id: https://opengnsys.es/svn/branches/version1.1@4763 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/shared/etc/preinit/mountrepo.sh')
-rwxr-xr-xclient/shared/etc/preinit/mountrepo.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/shared/etc/preinit/mountrepo.sh b/client/shared/etc/preinit/mountrepo.sh
index 62b1107e..e1c18fec 100755
--- a/client/shared/etc/preinit/mountrepo.sh
+++ b/client/shared/etc/preinit/mountrepo.sh
@@ -17,13 +17,14 @@ if [ "$ogactiveadmin" == "true" ]; then
umount $OGIMG 2>/dev/null
protocol=${ogprotocol:-"smb"}
+ [ "$ogunit" != "" ] && OGUNIT="/$ogunit"
printf "$MSG_MOUNTREPO\n" "$protocol" "$boot"
case "$ogprotocol" in
- nfs) mount.nfs ${ROOTREPO}:$OGIMG $OGIMG -o rw,nolock ;;
+ nfs) mount.nfs ${ROOTREPO}:$OGIMG$OGUNIT $OGIMG -o rw,nolock ;;
smb) PASS=$(grep "^[ ]*\(export \)\?OPTIONS=" /scripts/ogfunctions 2>&1 | \
sed 's/\(.*\)pass=\(\w*\)\(.*\)/\2/')
PASS=${PASS:-"og"}
- mount.cifs //${ROOTREPO}/ogimages $OGIMG -o rw,serverino,acl,username=opengnsys,password=$PASS
+ mount.cifs //${ROOTREPO}/ogimages$OGUNIT $OGIMG -o rw,serverino,acl,username=opengnsys,password=$PASS
;;
local) # TODO: hacer funcion dentro de este script que monte smb
# Comprobamos que estatus sea online.