Chromium Code Reviews| 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 |
|
Lambros
2012/08/18 00:06:50
Should save_hash() the Python modules (keygen.py,
Jamie
2012/08/20 19:46:05
I considered that, but since they're only used whe
|
| + ;; |
| +esac |
| + |
| +#DEBHELPER# |