#!/bin/sh

set -e

readonly optdim="/opt/dim"
readonly optweb="/opt/WebDID"
readonly optdimsite="/opt/dimsite"

for lnk in $optdim $optweb $optdimsite; do
 if [ -L $lnk ]; then
  rm -f $lnk
 fi
done

if which update-desktop-database > /dev/null 2>&1; then
 update-desktop-database -q
fi

if [ "$1" = "configure" ]; then
 ldconfig
fi 
