Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Goulet
Tor
Commits
79144b8e
Commit
79144b8e
authored
Jul 27, 2006
by
Andrew Lewman
Browse files
fi, fy fo fum, if-then- doesn't work without one
svn:r6928
parent
a5e50748
Changes
1
Hide whitespace changes
Inline
Side-by-side
contrib/osx/TorPostflight
View file @
79144b8e
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment