Home | History | Annotate | Download | only in debian
      1 #!/bin/bash
      2 
      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.
      6 
      7 set -e
      8 
      9 VAR_DIR="/var/lib/chrome-remote-desktop"
     10 HASHES_FILE="$VAR_DIR/hashes"
     11 
     12 save_hash() {
     13   if [ -f "$1" ]; then
     14     mkdir -p "$VAR_DIR"
     15     md5sum "$1" >> "$HASHES_FILE"
     16   fi
     17 }
     18 
     19 case "$1" in
     20   "install" | "upgrade")
     21     rm -f "$HASHES_FILE"
     22     save_hash /opt/google/chrome-remote-desktop
     23     ;;
     24 esac
     25 
     26 #DEBHELPER#
     27