Chromium Code Reviews
|
| OLD | NEW |
|---|---|
| (Empty) | |
| 1 #!/bin/sh | |
| 2 | |
| 3 NAME=org.chromium.chromoting | |
| 4 LAUNCHAGENTS=/Library/LaunchAgents | |
| 5 HELPERTOOLS=/Library/PrivilegedHelperTools | |
| 6 PLIST="$LAUNCHAGENTS/$NAME.plist" | |
| 7 | |
| 8 # Stop service if currently running. | |
| 9 # TODO(garykac): Trap errors and replace sleep with a check for when the | |
| 10 # service is stopped. | |
| 11 launchctl stop $NAME | |
| 12 launchctl unload -w -S Aqua $PLIST | |
| 13 sleep 1 | |
| 14 | |
| 15 # Cleanup files from old versions of installer. | |
|
Lambros
2012/04/03 00:49:17
Is this necessary now? I think a package uninstal
garykac
2012/04/09 19:04:16
this is temporary code that will be replaced by a
| |
| 16 sudo rm -f "$LAUNCHAGENTS/com.google.chrome_remote_desktop.plist" | |
|
Lambros
2012/04/03 00:49:17
"sudo" calls should be minimized. They are annoyin
garykac
2012/04/09 19:04:16
See above. This is all going away soon.
| |
| 17 sudo rm -f "$HELPERTOOLS/remoting_me2me_host" | |
| 18 sudo rm -f "$HELPERTOOLS/me2me.sh" | |
| 19 sudo rm -f "$HELPERTOOLS/com.google.chrome_remote_desktop.me2me_host" | |
| 20 sudo rm -f "$HELPERTOOLS/com.google.chrome_remote_desktop.me2me.sh" | |
| 21 sudo rm -f ~/.ChromotingConfig.json | |
| 22 sudo rm -f "$HELPERTOOLS/auth.json" | |
| 23 sudo rm -f "$HELPERTOOLS/host.json" | |
| 24 sudo rm -f "$HELPERTOOLS/me2me_enabled" | |
| 25 sudo rm -f "$HELPERTOOLS/com.google.chrome_remote_desktop.me2me_enabled" | |
| 26 sudo rm -rf /ChromotingSetup | |
| 27 | |
| 28 # Cleanup installed files. | |
| 29 sudo rm -f $PLIST | |
| 30 sudo rm -f "$HELPERTOOLS/$NAME.me2me_host" | |
| 31 sudo rm -f "$HELPERTOOLS/$NAME.me2me.sh" | |
| 32 sudo rm -f "$HELPERTOOLS/$NAME.json" | |
| 33 sudo rm -f "$HELPERTOOLS/$NAME.me2me_enabled" | |
| 34 | |
| 35 # Unregister our ticket from Keystone. | |
| 36 KSADMIN=/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Content s/MacOS/ksadmin | |
| 37 KSPID=com.google.chrome_remote_desktop | |
| 38 $KSADMIN --delete --productid $KSPID | |
| OLD | NEW |