Compare commits

...

3 Commits

Author SHA1 Message Date
Tobias Herre 690e84af24 Moved to unison 2025-05-03 06:12:34 -04:00
Tobias Herre 78d6b46c00 No need for this file anymore 2025-05-03 06:11:27 -04:00
Tobias Herre e8d93849db don't use --include='*', this breaks osync functionallity 2025-05-03 05:35:15 -04:00
3 changed files with 1 additions and 52 deletions

View File

@ -1,47 +0,0 @@
#!/bin/sh
. /etc/wmde-rp.conf
KNOWNHOSTS=`$PREFIX/wmde-rp-generate-known-hosts.sh`
LASTERROR=$? if [ $LASTERROR -ne 0 ]; then exit $LASTERROR fi
mkdir -p $HOMEDIR/.wmdesync
LASTERROR=$? if [ $LASTERROR -ne 0 ]; then exit $LASTERROR fi
echo $KNOWNHOSTS > "$HOMEDIR/.wmdesync/known_hosts"
LASTERROR=$? if [ $LASTERROR -ne 0 ]; then exit $LASTERROR fi
ssh $SSHARGS $PAM_USER@$NFSSERVER /usr/bin/true
LASTERROR=$? if [ $LASTERROR -ne 0 ]; then exit $LASTERROR fi
ls $NFSHOMES/$PAM_USER/
#mkdir -p $HOMEDIR/.config
#mkdir -p $NFSHOMES/$PAM_USER/.config
#unison $HOMEDIR/.config $NFSHOMES/$PAM_USER/.config $WMDE_UNISONARGS -ignore "Path .unison-wmde"
#mkdir -p $HOMEDIR/.local/share/backgrounds
#mkdir -p $NFSHOMES/$PAM_USER/.local/share/backgrounds
#unison $HOMEDIR/.local/share/backgrounds $NFSHOMES/$PAM_USER/.local/share/backgrounds $WMDE_UNISONARGS -ignore "Path .unison-wmde"
IGNORES="-ignore 'Path .wmdesync' "
OTHERARGS="-auto -log -prefer newer -fastcheck true -maxerrors 5000 "
export UNISON=$HOMEDIR/.wmdesync/unison
export UNISONLOCALHOSTNAME=`hostname`
mkdir -p $UNISON
WMDE_UNISON_PRF=/etc/wmde-rp-unison.prf
if [ -e "$WMDE_UNISON_PRF" ]; then cp "$WMDE_UNISON_PRF" "$UNISON/default.prf"; fi
echo "Doing initial profile sync, be patient ..."
eval unison $HOMEDIR $NFSHOMES/$PAM_USER $OTHERARGS -batch $IGNORES > /tmp/login.txt 2>&1
echo "Profile is now ready."

View File

@ -20,7 +20,6 @@ WMDERPDIRNAME=".wmde-rp"
CONFIG_DIRS=" \
--exclude='$WMDERPDIRNAME' \
--exclude='.osync_workdir' \
--exclude='Local' \
--include='*.kdbx' \
--include='.ssh/***' \
@ -46,7 +45,6 @@ CONFIG_DIRS=" \
FULL_DIRS=" \
--exclude='$WMDERPDIRNAME' \
--exclude='.osync_workdir' \
--exclude='Local' \
--include='*.kdbx' \
--include='.ssh/***' \
@ -69,12 +67,10 @@ FULL_DIRS=" \
--include=.config/*** \
--exclude='Downloads' \
--exclude='VirtualBox VMs' \
--include='*' \
"
PERM_DIRS=" \
--exclude='$WMDERPDIRNAME' \
--exclude='.osync_workdir' \
--exclude='Local' \
--include='*.kdbx' \
--include='.ssh/***' \
@ -95,9 +91,9 @@ PERM_DIRS=" \
--include='.local/share/' \
--include='.local/share/backgrounds/***' \
--include=.config/*** \
--include='*' \
"
# --exclude='.osync_workdir' \
#CONFIGDIRS=".config \
# .local/share/backgrounds \