Changeset 4989 for home-linker


Ignore:
Timestamp:
May 31, 2017, 12:03:34 PM (2 years ago)
Author:
hectorgh
Message:

fixed umounts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • home-linker/trunk/fuentes/home-linker.install/usr/sbin/home-linker

    r4735 r4989  
    9797# Umount directories mounted previously
    9898NEEDLE="${DESKTOP_LOCALE}|${DOCUMENTS_LOCALE}|${SHARE_LOCALE}|${SHARETEACHERS_LOCALE}|${GROUPSSHARE_LOCALE}|${DATA_ALUM}"
    99 LIST_BIND_MOUNTED="$(mount | grep -E '/net|/server' | grep '/'$USER'/' | grep -E $NEEDLE | cut -d ' ' -f3 | tr '\n' ' ')"
     99LIST_BIND_MOUNTED="$(mount | awk -F ' on ' "/$USER/"'{print $2 }' | grep -E $NEEDLE)"
    100100echo "" >> "$LOG"
    101101echo "     LIST MOUNTED POINTS AT LOGIN" >> "$LOG"
     
    112112    if [ $rc -eq 0 ]; then
    113113        echo "umount point: $MOUNT_POINT" >> "$LOG"
    114         umount $MOUNT_POINT || true
     114        umount -l $MOUNT_POINT || true
    115115    fi
    116116    echo "_______________________________________________________" >> "$LOG"
Note: See TracChangeset for help on using the changeset viewer.