#!/bin/bash

set -e

if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-remove" ]; then
  # Set SUID on the following files
  for FILE in /usr/sbin/hddtemp /usr/sbin/mount.davfs; do
    if [ -f $FILE ]; then
      chmod u+s $FILE
    fi
  done
fi
