[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r6928: fi, fy fo fum, if-then- doesn't work without one (tor/trunk/contrib/osx)
Author: phobos
Date: 2006-07-27 16:03:09 -0400 (Thu, 27 Jul 2006)
New Revision: 6928
Modified:
tor/trunk/contrib/osx/TorPostflight
Log:
fi, fy fo fum, if-then- doesn't work without one
Modified: tor/trunk/contrib/osx/TorPostflight
===================================================================
--- tor/trunk/contrib/osx/TorPostflight 2006-07-27 19:35:11 UTC (rev 6927)
+++ tor/trunk/contrib/osx/TorPostflight 2006-07-27 20:03:09 UTC (rev 6928)
@@ -128,15 +128,17 @@
cp $PACKAGE_PATH/Contents/Resources/net.freehaven.tor.plist /System/Library/LaunchDaemons/net.freehaven.tor.plist
chmod 644 /System/Library/LaunchDaemons/net.freehaven.tor.plist
if [ -f $TARGET/torrc ]; then
- IFS=,
- CONFIGVARS="#--START,RunAsDaemon 0,Log notice file $TARGET/var/log/tor/tor.log,DataDirectory $TARGET/var/lib/tor,Group daemon,User _tor,PidFile /var/run/Tor.pid,#--END"
- for var in ${CONFIGVARS}
- do
- RC=`grep ^$var $TARGET/torrc`
- if [ -z $RC ]; then
- echo "$var" >> $TARGET/torrc
- fi
- done
+ IFS=,
+ CONFIGVARS="#--START,RunAsDaemon 0,Log notice file $TARGET/var/log/tor/tor.log,DataDirectory $TARGET/var/lib/tor,Group daemon,User _tor,PidFile /var/run/Tor.pid,#--END"
+ for var in ${CONFIGVARS}
+ do
+ RC=`grep ^$var $TARGET/torrc`
+ if [ -z $RC ]; then
+ echo "$var" >> $TARGET/torrc
+ fi
+ done
+ fi
+ fi
/bin/launchctl load /System/Library/LaunchDaemons/net.freehaven.tor.plist
/bin/launchctl start net.freehaven.tor
else