From 06dd47333dfd97020f1d152ddbc3d19ceaf58cc3 Mon Sep 17 00:00:00 2001 From: Robert Plummer Date: Sun, 18 Dec 2011 14:35:17 -0500 Subject: [PATCH] Added Ubuntu 11.10 support, changed function names so they'd be less problematic --- install.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index 73f9af7..e96ac49 100755 --- a/install.sh +++ b/install.sh @@ -62,7 +62,7 @@ questions(){ read lipsync_dir_remote } -ssh.keygen(){ +ssh_keygen(){ if ssh -i /home/${username}/.ssh/id_dsa -p ${port} -o "KbdInteractiveAuthentication=no" -o "PasswordAuthentication=no" ${username}@${remote_server} echo "hello" > /dev/null then echo " ssh key exists here and on server, skipping key generation and transfer steps" @@ -124,7 +124,7 @@ ssh.keygen(){ fi } -build.conf(){ +build_conf(){ echo -n "* Creating lipsyncd config..." sed etc/lipsyncd_template > etc/lipsyncd \ -e 's|LSLOCDIR|'$lipsync_dir_local/'|g' \ @@ -146,6 +146,9 @@ deploy(){ if [ -x /usr/local/bin/lsyncd ]; then ln -s /usr/local/bin/lsyncd /usr/local/bin/lipsyncd fi + if [ -x /usr/bin/lsyncd ]; then + ln -s /usr/bin/lsyncd /usr/local/bin/lipsyncd + fi echo "done" echo -n " > /etc/init.d/lipsyncd..." @@ -222,8 +225,8 @@ if [ "${1}" = "uninstall" ]; then exit 0 else questions - ssh.keygen - build.conf + ssh_keygen + build_conf deploy initial_sync fi @@ -234,4 +237,4 @@ fi echo "lipsync setup complete, starting lipsyncd..." start -exit 0 +exit 0 \ No newline at end of file