Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / remoting / host / installer / linux / debian / preinst
blob91c7c937c6b5b549ac516cff87129d78867d7a07
1 #!/bin/bash
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
7 set -e
9 VAR_DIR="/var/lib/chrome-remote-desktop"
10 HASHES_FILE="$VAR_DIR/hashes"
12 save_hash() {
13 if [ -f "$1" ]; then
14 mkdir -p "$VAR_DIR"
15 md5sum "$1" >> "$HASHES_FILE"
19 case "$1" in
20 "install" | "upgrade")
21 rm -f "$HASHES_FILE"
22 save_hash /opt/google/chrome-remote-desktop
24 esac
26 #DEBHELPER#