]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fi, fy fo fum, if-then- doesn't work without one
authorAndrew Lewman <andrew@torproject.org>
Thu, 27 Jul 2006 20:03:09 +0000 (20:03 +0000)
committerAndrew Lewman <andrew@torproject.org>
Thu, 27 Jul 2006 20:03:09 +0000 (20:03 +0000)
svn:r6928

contrib/osx/TorPostflight

index 898a172af01f11c0ca190b8fef818e3c3863f893..9a5b431487a62a1f24daebc56c140fe3fed51287 100644 (file)
@@ -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