Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #30 from acoolon/master

Some sed-magic in build.conf
  • Loading branch information...
commit ee817c13476bc71b157584e7c72c63a5bc8af918 2 parents de951fd + e70b77d
@philcryer authored
View
0  etc/lipsyncd → etc/lipsyncd_template
File renamed without changes
View
13 install.sh
@@ -122,11 +122,12 @@ ssh.keygen(){
build.conf(){
echo -n "* Creating lipsyncd config..."
- sed 's|LSLOCDIR|'$lipsync_dir_local/'|g' etc/lipsyncd > /tmp/lipsyncd01
- sed 's|LSUSER|'$username'|g' /tmp/lipsyncd01 > /tmp/lipsyncd02
- sed 's|LSPORT|'$port'|g' /tmp/lipsyncd02 > /tmp/lipsyncd03
- sed 's|LSREMSERV|'$remote_server'|g' /tmp/lipsyncd03 > /tmp/lipsyncd04
- sed 's|LSREMDIR|'$lipsync_dir_remote'|g' /tmp/lipsyncd04 > /tmp/lipsyncd
+ sed etc/lipsyncd_template > etc/lipsyncd \
+ -e 's|LSLOCDIR|'$lipsync_dir_local/'|g' \
+ -e 's|LSUSER|'$username'|g' \
+ -e 's|LSPORT|'$port'|g' \
+ -e 's|LSREMSERV|'$remote_server'|g' \
+ -e 's|LSREMDIR|'$lipsync_dir_remote'|g'
echo "done"
}
@@ -153,7 +154,7 @@ deploy(){
echo "done"
echo -n " > /etc/lipsyncd..."
- mv /tmp/lipsyncd /etc/
+ mv etc/lipsyncd /etc/
echo "done"
echo -n " > /usr/share/doc/lipsyncd..."
Please sign in to comment.
Something went wrong with that request. Please try again.