fixup unison dir, auto-updates setup in separate repo
[distro-setup] / distro-begin
index ce71c83de81bf5d4b4056ff2d36b469f3cdbfaf1..045af1a7fd4eede04b5f761970eb0ab9641e04d3 100755 (executable)
@@ -332,6 +332,15 @@ fi
 s lnf /q/root/.editor-backups /q/root/.undo-tree-history \
   /a/opt /a/c/.emacs.d $HOME/mw_vars /k/backup /root
 
+d=/q/p/c/machine_specific/$HOSTNAME/.unison
+if ! s test -L /root/.unison && [[ ! $(s find /root/.unison -prune -empty) ]]; then
+    mkdir -p $d
+    s chown -R $USER:$USER /root/.unison
+    mv -f /root/.unison/* $d
+fi
+s lnf -T $d /root/.unison
+
+
 rootsshsync
 
 s lnf /a/c/.inputrc /a/c/.vim /a/c/.vimrc /a/c/.gvimrc /root