diff options
Diffstat (limited to 'contrib/osx/TorPostflight')
-rw-r--r-- | contrib/osx/TorPostflight | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/contrib/osx/TorPostflight b/contrib/osx/TorPostflight index e20090150c..b1a9e541f4 100644 --- a/contrib/osx/TorPostflight +++ b/contrib/osx/TorPostflight @@ -30,9 +30,13 @@ fi chown $TORUSER $TORDIR chgrp daemon $TORDIR chmod 700 $TORDIR -chown $TORUSER $LOGFILE -chgrp daemon $LOGFILE -chmod 660 $LOGFILE + +if [ ! -f $LOGFILE ]; then + touch $LOGFILE + chown $TORUSER $LOGFILE + chgrp daemon $LOGFILE + chmod 660 $LOGFILE +fi # Create the configuration file only if there wasn't one already. if [ ! -f $TARGET/torrc ]; then |