Chromium Code Reviews| Index: remoting/host/installer/mac/Scripts/remoting_postflight.sh |
| =================================================================== |
| --- remoting/host/installer/mac/Scripts/remoting_postflight.sh (revision 181302) |
| +++ remoting/host/installer/mac/Scripts/remoting_postflight.sh (working copy) |
| @@ -13,6 +13,7 @@ |
| PAM_CONFIG=/etc/pam.d/chrome-remote-desktop |
| ENABLED_FILE="$HELPERTOOLS/$NAME.me2me_enabled" |
| ENABLED_FILE_BACKUP="$ENABLED_FILE.backup" |
| +LOG_FILE=/var/log/org.chromium.chromoting.log |
| KSADMIN=/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/MacOS/ksadmin |
| KSUPDATE=https://tools.google.com/service/update2 |
| @@ -63,6 +64,14 @@ |
| logger PAM config has local edits. Not updating. |
| fi |
| +# Create the log file (if this isn't created ahead of time |
| +# then directing output from the service there won't work). |
| +# Make sure admins have write privileges (CRD users are |
| +# typically admins) |
| +touch "$LOG_FILE" |
| +chown :admin "$LOG_FILE" |
| +chmod 664 "$LOG_FILE" |
|
Jamie
2013/02/08 23:45:11
As with the conf file, 660 would be safer.
|
| + |
| # Load the service. |
| # The launchctl command we'd like to run: |
| # launchctl load -w -S Aqua $PLIST |