#!/bin/sh NFSSERVER=nfsserver.gs.wikimedia.de NFSHOMES=/mnt/home PREFIX=/usr/local/bin/wmde SYNCPRG=unison ADMIN_USERS="admin root" # never run roaming profiles for this users MIN_USER_ID=10000 # no roaming users with id < 10000 (non-IPA-users) NETGROUPS="wmde-rp-general" WAIT_FOR_CONFIG=always # always, first or never WAIT_FOR_FULLSYNC=never # always, first or never WMDERPDIRNAME=".wmde-rp" CONFIG_DIRS=" \ --exclude='$WMDERPDIRNAME' \ --exclude='Local' \ --include='*.kdbx' \ --include='.ssh/***' \ --include='.cache/' \ --include='.cache/keepassxc/***' \ --exclude='cache' \ --exclude='*/cache' \ --exclude='.cache' \ --exclude='*/.cache' \ --exclude='.cache2' \ --exclude='*/.cache2' \ --exclude='Cache' \ --exclude='*/Cache' \ --exclude='.thunderbird/*/ImapMail/' \ --include='.thunderbird/***' \ --include='.mozilla/***' \ --include='.local/' \ --include='.local/share/' \ --include='.local/share/backgrounds/***' \ --include=.config/*** \ --exclude='*' \ " UNISON_CONFIG_DIRS=$(cat << EOF ignore = Path $WMDERPDIRNAME path = .config path = .local/share/backgrounds path = .ssh path = .cache/keepassxc path = .thunderbird path = .mozilla ignore = Path Local ignore = Path cache ignore = Path */cache ignore = Path .cache ignore = Path */.cache ignore = Path .cache2 ignore = Path */.cache2 ignore = Name Cache ignore = Path */Cache ignore = Path .thunderbird/*/ImapMail ignore = Name .config/chromium/Singleton* EOF ) UNISON_FULL_DIRS=$(cat << EOF ignore = Path $WMDERPDIRNAME ignore = Path Local ignore = Path cache ignore = Path */cache ignore = Path .cache ignore = Path */.cache ignore = Path .cache2 ignore = Path */.cache2 ignore = Name Cache ignore = Path */Cache ignore = Path .thunderbird/*/ImapMail ignore = Path Downloads ignore = Path VirtualBox VMs ignore = Name .config/chromium/Singleton* EOF ) UNISON_PERM_DIRS=$(cat << EOF ignore = Path $WMDERPDIRNAME ignore = Path Local ignore = Path cache ignore = Path */cache ignore = Path .cache ignore = Path */.cache ignore = Path .cache2 ignore = Path */.cache2 ignore = Name Cache ignore = Path */Cache ignore = Path .thunderbird/*/ImapMail ignore = Path Downloads ignore = Path VirtualBox VMs ignore = Name .config/chromium/Singleton* EOF ) FULL_DIRS=" \ --exclude='$WMDERPDIRNAME' \ --exclude='Local' \ --include='*.kdbx' \ --include='.ssh/***' \ --include='.cache/' \ --include='.cache/keepassxc/***' \ --exclude='cache' \ --exclude='*/cache' \ --exclude='.cache' \ --exclude='*/.cache' \ --exclude='.cache2' \ --exclude='*/.cache2' \ --exclude='Cache' \ --exclude='*/Cache' \ --exclude='.thunderbird/*/ImapMail/' \ --include='.thunderbird/***' \ --include='.mozilla/***' \ --include='.local/' \ --include='.local/share/' \ --include='.local/share/backgrounds/***' \ --include=.config/*** \ --exclude='Downloads' \ --exclude='VirtualBox VMs' \ " PERM_DIRS=" \ --exclude='$WMDERPDIRNAME' \ --exclude='Local' \ --include='*.kdbx' \ --include='.ssh/***' \ --include='.cache/' \ --include='.cache/keepassxc/***' \ --exclude='cache' \ --exclude='*/cache' \ --exclude='.cache' \ --exclude='*/.cache' \ --exclude='.cache2' \ --exclude='*/.cache2' \ --exclude='Cache' \ --exclude='*/Cache' \ --exclude='.thunderbird/*/ImapMail/' \ --include='.thunderbird/***' \ --include='.mozilla/***' \ --include='.local/' \ --include='.local/share/' \ --include='.local/share/backgrounds/***' \ --include=.config/*** \ " # --exclude='.osync_workdir' \ #CONFIGDIRS=".config \ # .local/share/backgrounds \ # .ssh" if [ -d /etc/wmde-rp.d ]; then for file in $(ls /etc/wmde-rp.d/*.conf 2>/dev/null | sort); do [ -f "$file" ] && . "$file" done fi