# this script gets executed only once, before the users home from the # server gets mounted. in this case $USER and $VOLUME are the same if [ $USER != $VOLUME ]; then return 0 fi # 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 # log success $LOGGING && msg2log pre-mount "We are mounting users home, copy default profile" rsync -r $RSYNC_OPTIONS /home/$PROFILE_USER/ $HOMEDIR/ mkdir -p $MNTPT