Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(691)

Side by Side Diff: remoting/host/installer/mac/Scripts/uninstall.sh

Issue 9958083: Initial version of the Chromoting installer for Mac. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
Property Changes:
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
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698