Chromium Code Reviews| Index: remoting/host/installer/mac/Scripts/uninstall.sh |
| =================================================================== |
| --- remoting/host/installer/mac/Scripts/uninstall.sh (revision 0) |
| +++ remoting/host/installer/mac/Scripts/uninstall.sh (working copy) |
| @@ -0,0 +1,38 @@ |
| +#!/bin/sh |
| + |
| +NAME=org.chromium.chromoting |
| +LAUNCHAGENTS=/Library/LaunchAgents |
| +HELPERTOOLS=/Library/PrivilegedHelperTools |
| +PLIST="$LAUNCHAGENTS/$NAME.plist" |
| + |
| +# Stop service if currently running. |
| +# TODO(garykac): Trap errors and replace sleep with a check for when the |
| +# service is stopped. |
| +launchctl stop $NAME |
| +launchctl unload -w -S Aqua $PLIST |
| +sleep 1 |
| + |
| +# 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
|
| +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.
|
| +sudo rm -f "$HELPERTOOLS/remoting_me2me_host" |
| +sudo rm -f "$HELPERTOOLS/me2me.sh" |
| +sudo rm -f "$HELPERTOOLS/com.google.chrome_remote_desktop.me2me_host" |
| +sudo rm -f "$HELPERTOOLS/com.google.chrome_remote_desktop.me2me.sh" |
| +sudo rm -f ~/.ChromotingConfig.json |
| +sudo rm -f "$HELPERTOOLS/auth.json" |
| +sudo rm -f "$HELPERTOOLS/host.json" |
| +sudo rm -f "$HELPERTOOLS/me2me_enabled" |
| +sudo rm -f "$HELPERTOOLS/com.google.chrome_remote_desktop.me2me_enabled" |
| +sudo rm -rf /ChromotingSetup |
| + |
| +# Cleanup installed files. |
| +sudo rm -f $PLIST |
| +sudo rm -f "$HELPERTOOLS/$NAME.me2me_host" |
| +sudo rm -f "$HELPERTOOLS/$NAME.me2me.sh" |
| +sudo rm -f "$HELPERTOOLS/$NAME.json" |
| +sudo rm -f "$HELPERTOOLS/$NAME.me2me_enabled" |
| + |
| +# Unregister our ticket from Keystone. |
| +KSADMIN=/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/MacOS/ksadmin |
| +KSPID=com.google.chrome_remote_desktop |
| +$KSADMIN --delete --productid $KSPID |
| Property changes on: remoting/host/installer/mac/Scripts/uninstall.sh |
| ___________________________________________________________________ |
| Added: svn:executable |
| ## -0,0 +1 ## |
| +* |
| \ No newline at end of property |
| Added: svn:eol-style |
| ## -0,0 +1 ## |
| +LF |
| \ No newline at end of property |