Changeset 2828


Ignore:
Timestamp:
Nov 11, 2016, 1:08:20 PM (3 years ago)
Author:
hectorgh
Message:

wip

File:
1 edited

Legend:

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

    r2804 r2828  
    250250        echo "MOUNTING ${SHARETEACHERS_LOCALE}" >> "$LOG"
    251251        [ -d ${HL_HOME}/${SHARETEACHERS_LOCALE} ] || mkdir ${HL_HOME}/${SHARETEACHERS_LOCALE}
    252         [ "${SHARETEACHERS_LOCALE}" = "" ] || mount --bind /net/server-sync/teachers_share $HL_HOME/${SHARETEACHERS_LOCALE} 1>> $LOG 2>>$LOG || true
     252        [ "${SHARETEACHERS_LOCALE}" = "" ] || mount --bind /net/server-sync/teachers_share $HL_HOME/${SHARETEACHERS_LOCALE} 1>>$LOG 2>>$LOG || true
    253253       
    254254        echo "MOUNTING ${DATA_ALUM}" >> "$LOG"
    255255        [ -d $HL_HOME/$DATA_ALUM ] || mkdir $HL_HOME/$DATA_ALUM
    256         [ "${DATA_ALUM}" = "" ]  || mount --bind /net/server-sync/home/students/ $HL_HOME/$DATA_ALUM 1>> $LOG 2>>$LOG || true
     256        [ "${DATA_ALUM}" = "" ]  || mount --bind /net/server-sync/home/students/ $HL_HOME/$DATA_ALUM 1>>$LOG 2>>$LOG || true
    257257       
    258258    fi
    259259    echo "MOUNTING ${GROUPSSHARE_LOCALE}" >> "$LOG"
    260     [ "${GROUPSSHARE_LOCALE}" = "" ] || mount --bind /net/server-sync/groups_share $HL_HOME/${GROUPSSHARE_LOCALE} 1>> $LOG 2>>$LOG  || true
     260    [ "${GROUPSSHARE_LOCALE}" = "" ] || mount --bind /net/server-sync/groups_share $HL_HOME/${GROUPSSHARE_LOCALE} 1>>$LOG 2>>$LOG  || true
    261261   
    262262elif [ -d "/var/run/$HL_USER/home" ]; then
     
    265265    echo "----------------------" >> "$LOG"
    266266    echo "MOUNTING ${DESKTOP_LOCALE}" >> "$LOG"
    267     [ "${DESKTOP_LOCALE}" = "" ] || mount --bind /run/$HL_USER/home/$GRP_USER/$HL_USER/Desktop $HL_HOME/${DESKTOP_LOCALE} 1>> $LOG 2>>$LOG || true
     267    [ "${DESKTOP_LOCALE}" = "" ] || mount --bind /run/$HL_USER/home/$GRP_USER/$HL_USER/Desktop $HL_HOME/${DESKTOP_LOCALE} 1>>$LOG 2>>$LOG || true
    268268    echo "MOUNTING ${DOCUMENTS_LOCALE}" >> "$LOG"
    269     [ "${DOCUMENTS_LOCALE}" = "" ] || mount --bind /run/$HL_USER/home/$GRP_USER/$HL_USER/Documents $HL_HOME/${DOCUMENTS_LOCALE} 1>> $LOG 2>>$LOG || true
     269    [ "${DOCUMENTS_LOCALE}" = "" ] || mount --bind /run/$HL_USER/home/$GRP_USER/$HL_USER/Documents $HL_HOME/${DOCUMENTS_LOCALE} 1>>$LOG 2>>$LOG || true
    270270    echo "MOUNTING ${SHARE_LOCALE}" >> "$LOG"
    271     [ "${SHARE_LOCALE}" = "" ] || mount --bind /run/$HL_USER/share $HL_HOME/${SHARE_LOCALE} 1>> $LOG 2>>$LOG || true
     271    [ "${SHARE_LOCALE}" = "" ] || mount --bind /run/$HL_USER/share $HL_HOME/${SHARE_LOCALE} 1>>$LOG 2>>$LOG || true
    272272    if [ "$GRP_USER" = "teachers" ]; then
    273273        # DELETE OLD DIRECTORIES FOR OTHER LANGUAGES
     
    289289        echo "MOUNTING ${SHARETEACHERS_LOCALE}" >> "$LOG"
    290290        [ -d ${HL_HOME}/${SHARETEACHERS_LOCALE} ] || mkdir ${HL_HOME}/${SHARETEACHERS_LOCALE}
    291         [ "${SHARETEACHERS_LOCALE}" = "" ] || mount --bind /run/$HL_USER/teachers_share $HL_HOME/${SHARETEACHERS_LOCALE} 1>> $LOG 2>>$LOG || true
     291        [ "${SHARETEACHERS_LOCALE}" = "" ] || mount --bind /run/$HL_USER/teachers_share $HL_HOME/${SHARETEACHERS_LOCALE} 1>>$LOG 2>>$LOG || true
    292292       
    293293        [ -d $HL_HOME/$DATA_ALUM ] || mkdir $HL_HOME/$DATA_ALUM
     
    297297   
    298298    echo "MOUNTING ${GROUPSSHARE_LOCALE}" >> "$LOG"
    299     [ "${GROUPSSHARE_LOCALE}" = "" ] || mount --bind /run/$HL_USER/groups_share $HL_HOME/${GROUPSSHARE_LOCALE} 1>> $LOG 2>>$LOG || true
     299    [ "${GROUPSSHARE_LOCALE}" = "" ] || mount --bind /run/$HL_USER/groups_share $HL_HOME/${GROUPSSHARE_LOCALE} 1>>$LOG 2>>$LOG || true
    300300   
    301301fi
Note: See TracChangeset for help on using the changeset viewer.