Skip to content

Commit

Permalink
Merge pull request #44 from robertleeplummerjr/master
Browse files Browse the repository at this point in the history
Some cleanup for ubuntu 11.10
  • Loading branch information
philcryer committed Apr 24, 2012
2 parents 27ea1f9 + 06dd473 commit 38095f5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions install.sh
Expand Up @@ -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"
Expand Down Expand Up @@ -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' \
Expand All @@ -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..."
Expand Down Expand Up @@ -223,8 +226,8 @@ if [ "${1}" = "uninstall" ]; then
exit 0
else
questions
ssh.keygen
build.conf
ssh_keygen
build_conf
deploy
initial_sync
fi
Expand Down

0 comments on commit 38095f5

Please sign in to comment.