Permalink
Browse files

create the inetd file as part of the install

  • Loading branch information...
1 parent 0ec2836 commit 200746a88ad92011255a4ad0c0d957d1e26223b7 BuzzTroll committed Sep 3, 2010
Showing with 6 additions and 1 deletion.
  1. +5 −0 lantorrent/install.sh
  2. +1 −1 lantorrent/pylantorrent/__init__.py
View
@@ -9,7 +9,12 @@ fi
dir=`dirname $0`
cd $dir
+LANTORRENT_HOME=`pwd`
cp -r `pwd` $NIMBUS_HOME/
cd $NIMBUS_HOME/lantorrent
+
+who=`whoami`
+sed -e "s/@PORT@/2893/" -e "s/@SERVICENAME@/lantorrent/" -e "s/@WHO@/$who/" -e "s^@LANTORRENT_HOME@/$LANTORRENT_HOME/" etc/lantorrent.inet.in > lantorrent.inet
+
sqlite3 etc/req.db < etc/lt.sql
exit $?
@@ -83,7 +83,7 @@ def load_settings(self, ini_file):
except Exception, ex:
pass
try:
- self.dbfile = s.get("db", "file").replace("@LANTORRENT@", self.lt_home)
+ self.dbfile = s.get("db", "file").replace("@LANTORRENT_HOME@", self.lt_home)
except:
pass

0 comments on commit 200746a

Please sign in to comment.