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

Unified Diff: remoting/host/installer/linux/debian/preinst

Issue 10860024: Handle updates to the wrapper script. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reinstated spin protection. Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/installer/linux/debian/postinst ('k') | remoting/tools/is_me2me_desktop » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/installer/linux/debian/preinst
diff --git a/remoting/host/installer/linux/debian/preinst b/remoting/host/installer/linux/debian/preinst
new file mode 100755
index 0000000000000000000000000000000000000000..faa38559597c9260ae20c83663536302b2b7c646
--- /dev/null
+++ b/remoting/host/installer/linux/debian/preinst
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+set -e
+
+VAR_DIR="/var/lib/chrome-remote-desktop"
+HASHES_FILE="$VAR_DIR/hashes"
+
+save_hash() {
+ if [ -f "$1" ]; then
+ mkdir -p "$VAR_DIR"
+ md5sum "$1" >> "$HASHES_FILE"
+ fi
+}
+
+case "$1" in
+ "install" | "upgrade")
+ rm -f "$HASHES_FILE"
+ save_hash /usr/bin/me2me_virtual_host
+ ;;
+esac
+
+#DEBHELPER#
« no previous file with comments | « remoting/host/installer/linux/debian/postinst ('k') | remoting/tools/is_me2me_desktop » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698