Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Some cleanup for ubuntu 11.10 #44

Merged
merged 1 commit into from

2 participants

@robertleeplummerjr

I couldn't get your great script running in Ubuntu 11.10, and after a bit of prodding, I found out why. Lsync was pointed to the wrong location, and a few functions refused to run.

@philcryer philcryer merged commit 38095f5 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 8 additions and 5 deletions.
  1. +8 −5 install.sh
View
13 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
Something went wrong with that request. Please try again.