Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Core
Tor
Commits
f406d661
Commit
f406d661
authored
18 years ago
by
Andrew Lewman
Browse files
Options
Downloads
Patches
Plain Diff
In response to FlySpray #341, move to an more Apple friendly logfile in
the OSX bundles. svn:r9803
parent
4abf2163
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
contrib/osx/Makefile.am
+1
-2
1 addition, 2 deletions
contrib/osx/Makefile.am
contrib/osx/TorPostflight
+6
-15
6 additions, 15 deletions
contrib/osx/TorPostflight
with
7 additions
and
17 deletions
contrib/osx/Makefile.am
+
1
−
2
View file @
f406d661
...
...
@@ -8,5 +8,4 @@ EXTRA_DIST = PrivoxyConfDesc.plist PrivoxyConfInfo.plist \
TorInfo.plist.in TorStartupDesc.plist.in TorStartupInfo.plist
\
package.sh privoxy.config TorPostflight addsysuser
\
Tor_Uninstaller.applescript uninstall_tor_bundle.sh
\
package_list.txt tor_logo.gif
\
TorPreFlight
package_list.txt tor_logo.gif TorPreFlight
This diff is collapsed.
Click to expand it.
contrib/osx/TorPostflight
+
6
−
15
View file @
f406d661
...
...
@@ -12,7 +12,7 @@ TORUSER=_tor
TORGROUP
=
daemon
TARGET
=
$2
/Library/Tor
TORDIR
=
$TARGET
/var/lib/tor
LOG
DIR
=
$TARGET
/var/log/tor
LOG
FILE
=
/var/log/tor
.log
# Check defaults for TARGET
if
[
"
$TARGET
"
==
"//Library/Tor"
]
;
then
...
...
@@ -26,16 +26,13 @@ $ADDSYSUSER $TORUSER "Tor System user" $TORDIR
if
[
!
-d
$TORDIR
]
;
then
mkdir
-p
$TORDIR
fi
if
[
!
-d
$LOGDIR
]
;
then
mkdir
-p
$LOGDIR
fi
# Check its permissions.
chown
$TORUSER
$TORDIR
chgrp
daemon
$TORDIR
chmod
700
$TORDIR
chown
$TORUSER
$LOG
DIR
chgrp
daemon
$LOG
DIR
chmod
70
0
$LOG
DIR
chown
$TORUSER
$LOG
FILE
chgrp
daemon
$LOG
FILE
chmod
66
0
$LOG
FILE
# Create the configuration file only if there wasn't one already.
if
[
!
-f
$TARGET
/torrc
]
;
then
...
...
@@ -57,12 +54,6 @@ cd /usr/share/man/man1
MAN1
=
$TARGET
/man/man1
ln
-sf
$MAN1
/
*
.1
.
if
[
!
-e
/var/log/tor
-o
-L
/var/log/tor
]
;
then
cd
/var/log
rm
-f
tor
ln
-sf
$LOGDIR
tor
fi
if
[
-d
/Library/StartupItems/Privoxy
]
;
then
find /Library/StartupItems/Privoxy
-print0
| xargs
-0
chown
root:wheel
fi
...
...
@@ -75,12 +66,12 @@ fi
# Copy Uninstaller
if
[
-f
$PACKAGE_PATH
/Contents/Resources/Tor_Uninstaller.applescript
]
;
then
cp
$PACKAGE_PATH
/Contents/Resources/Tor_Uninstaller.applescript
$TARGET
/Tor_Uninstaller.applescript
chmod
7
55
$TARGET
/Tor_Uninstaller.applescript
chmod
5
55
$TARGET
/Tor_Uninstaller.applescript
fi
if
[
-f
$PACKAGE_PATH
/Contents/Resources/uninstall_tor_bundle.sh
]
;
then
cp
$PACKAGE_PATH
/Contents/Resources/uninstall_tor_bundle.sh
$TARGET
/uninstall_tor_bundle.sh
chmod
7
55
$TARGET
/uninstall_tor_bundle.sh
chmod
5
55
$TARGET
/uninstall_tor_bundle.sh
fi
if
[
-f
$PACKAGE_PATH
/Contents/Resources/package_list.txt
]
;
then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment