From 97a6b132246e883f5a7664c170e1959fb72efe5a Mon Sep 17 00:00:00 2001 From: Austen Date: Fri, 18 Jul 2014 17:04:46 -0400 Subject: [PATCH] Removed unison sync. ownCloud will be used... --- sync.sh | 8 +------- unison/unisonKill.sh | 2 -- unison/unisonMonitor.sh | 2 -- unison/unisonNetworkOnPortForward.sh | 2 -- unison/unisonSync.sh | 3 --- 5 files changed, 1 insertion(+), 16 deletions(-) delete mode 100644 unison/unisonKill.sh delete mode 100644 unison/unisonMonitor.sh delete mode 100644 unison/unisonNetworkOnPortForward.sh delete mode 100644 unison/unisonSync.sh diff --git a/sync.sh b/sync.sh index 411b187..fa78af3 100755 --- a/sync.sh +++ b/sync.sh @@ -1,4 +1,4 @@ -while getopts ":hbsdtclwu" VALUE "$@"; do +while getopts ":hbsdtclw" VALUE "$@"; do if [ "$VALUE" = "h" ] ; then echo "sync.sh syncs configuration files, applications, and Vim bundles between computers" echo " -h Shows this help" @@ -83,11 +83,5 @@ while getopts ":hbsdtclwu" VALUE "$@"; do sudo vi `which wemux` +"execute \"normal gg/tmux\nnnea -2\nea -2\ggZZ\"" sudo vi /usr/local/etc/wemux.conf +":execute \"normal gg/host_list\nnww\"" fi - if [ "$VALUE" = "u" ] ; then - sudo cp unison/unisonNetworkOnPortForward.sh /etc/network/if-up.d/ - sudo vim /etc/rc.local +"execute \"normal /exit 0\Osudo -u stonewareslord ${PWD}/unison/unisonMonitor.sh &\ggZZ\"" - vim unison/unisonSync.sh +"execute \"gg/sync\$hci\"${PWD}\ggZZ\"" - echo "30 12 * * * ${PWD}/unison/unisonSync.sh" >> /etc/cron.d/unison - fi done echo "Done syncing" diff --git a/unison/unisonKill.sh b/unison/unisonKill.sh deleted file mode 100644 index faa488b..0000000 --- a/unison/unisonKill.sh +++ /dev/null @@ -1,2 +0,0 @@ -#! /bin/bash -ps aux | grep unison | awk '{print $2}' | xargs kill -9 diff --git a/unison/unisonMonitor.sh b/unison/unisonMonitor.sh deleted file mode 100644 index 9cd5d76..0000000 --- a/unison/unisonMonitor.sh +++ /dev/null @@ -1,2 +0,0 @@ -#! /bin/bash -unison default ~/Documents ssh://stonewareslord@localhost:9922//home/vinh/Backup/Documents -repeat watch -times -logfile /tmp/unison.log diff --git a/unison/unisonNetworkOnPortForward.sh b/unison/unisonNetworkOnPortForward.sh deleted file mode 100644 index 7b462ff..0000000 --- a/unison/unisonNetworkOnPortForward.sh +++ /dev/null @@ -1,2 +0,0 @@ -#! /bin/bash -sudo -u stonewareslord ssh stonewareslord@austenwares.com -Y -C -f -N -L 9922:austenwares.com:22 diff --git a/unison/unisonSync.sh b/unison/unisonSync.sh deleted file mode 100644 index 3a75308..0000000 --- a/unison/unisonSync.sh +++ /dev/null @@ -1,3 +0,0 @@ -#! /bin/bash -sync="~/applications/sync/" -unison -batch -times $SYNC ssh://stonewareslord@localhost:9922//home/stonewareslord/unison/sync -logfile /tmp/unison.log