diff options
author | Andrew Lewman <andrew@torproject.org> | 2006-07-27 20:03:09 +0000 |
---|---|---|
committer | Andrew Lewman <andrew@torproject.org> | 2006-07-27 20:03:09 +0000 |
commit | 79144b8eb040ff88f68158e4457a8d1cddef8387 (patch) | |
tree | f06682986f8857dc5a22b684be6200c3ce8175b5 /contrib/osx/TorPostflight | |
parent | a5e50748077f1679637d8fdaaa7c68fead92f7f6 (diff) | |
download | tor-79144b8eb040ff88f68158e4457a8d1cddef8387.tar.gz tor-79144b8eb040ff88f68158e4457a8d1cddef8387.zip |
fi, fy fo fum, if-then- doesn't work without one
svn:r6928
Diffstat (limited to 'contrib/osx/TorPostflight')
-rw-r--r-- | contrib/osx/TorPostflight | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/contrib/osx/TorPostflight b/contrib/osx/TorPostflight index 898a172af0..9a5b431487 100644 --- a/contrib/osx/TorPostflight +++ b/contrib/osx/TorPostflight @@ -128,15 +128,17 @@ if [ $OS = "tiger" || $OS = "leopard" ]; then 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 |