Changeset 2782


Ignore:
Timestamp:
Nov 8, 2016, 12:35:48 PM (3 years ago)
Author:
daduve
Message:

Deleting mounted directories from /net in login user

Location:
home-linker/trunk/fuentes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • home-linker/trunk/fuentes/debian/changelog

    r2733 r2782  
     1home-linker (0.58) xenial; urgency=high
     2
     3  *  Change grep to umount mounted directories in login user
     4
     5 -- Daniel Duran Vecino <daduve@gmail.com>  Tue, 08 Nov 2016 12:33:16 +0100
     6
    17home-linker (0.57) xenial; urgency=high
    28
  • home-linker/trunk/fuentes/home-linker.install/usr/sbin/home-linker

    r2732 r2782  
    9090
    9191# Umount directories mounted previously
    92 LIST_BIND_MOUNTED="$(mount | grep -E '[,(]bind[,)]' | cut -d ' ' -f3 | tr '\n' ' ')"
     92LIST_BIND_MOUNTED="$(mount | grep /net | cut -d ' ' -f3 | tr '\n' ' ')"
     93echo "" >> "$LOG"
     94echo "  LIST BIND MOUNTED BEFORE TO UMOUNT" >> "$LOG"
     95echo "---------------------------------------" >> "$LOG"
     96echo "$LIST_BIND_MOUNTED" >> "$LOG"
     97echo "_______________________________________________________" >> "$LOG"
     98echo "" >> "$LOG"
    9399for MOUNT_POINT in $LIST_BIND_MOUNTED; do
    94100    rc=0
    95101    $(echo $MOUNT_POINT | grep -q $HL_HOME) || rc=1
     102    echo "" >> "$LOG"
     103    echo "TESTING THIS MOUNT_POINT: $MOUNT_POINT" >> "$LOG"
     104    echo "UMOUNT POINT IF RC!=0, VALOR ACTUALLY FOR RC IS $rc" >> "$LOG"
    96105    if [ $rc -eq 0 ]; then
     106        echo "umount point: $MOUNT_POINT" >> "$LOG"
    97107        umount $MOUNT_POINT || true
    98108    fi
     109    echo "_______________________________________________________" >> "$LOG"
    99110done
    100111
Note: See TracChangeset for help on using the changeset viewer.