# this script gets executed only once, before the users home from the # server gets mounted. in this case $USER and $VOLUME are the same mainserverip=$(gethostip $SERVER | awk '{print $2}') requestserverip=$(grep "^uri\ ldap://" /etc/ldap.conf | head -n 1 | sed "s@^uri\ ldap://@@;s@/.*@@") if [ $USER != $VOLUME -o $mainserverip != $requestserverip ]; then return 0 fi # Additional check, if the Home_auf_Server Directory is not empty and return . /etc/linuxmuster-client/linuxmuster-client.conf || exit 1 if [ "$(ls -A $HOMEDIR/$HOMEFOLDERNAME)" ]; then msg2log pre-mount "$HOMEFOLDERNAME is not empty, not syncing." return 0 fi