X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=debian%2Fpostinst;fp=debian%2Fpostinst;h=0000000000000000000000000000000000000000;hb=74800375ecf7f41e290cf7cc7fa9ee8b230be68e;hp=df0e3499c76c189c12185a9a34e941b4190eeb52;hpb=89f0017e6a73945ea83247472a6fa07d6ee536b5;p=vicar diff --git a/debian/postinst b/debian/postinst deleted file mode 100755 index df0e349..0000000 --- a/debian/postinst +++ /dev/null @@ -1,81 +0,0 @@ -#!/bin/sh -# postinst script for vicar -# -# see: dh_installdeb(1) - -set -e - -# summary of how this script can be called: -# * `configure' -# * `abort-upgrade' -# * `abort-remove' `in-favour' -# -# * `abort-remove' -# * `abort-deconfigure' `in-favour' -# `removing' -# -# for details, see http://www.debian.org/doc/debian-policy/ or -# the debian-policy package - - -case "$1" in - configure) - - eval $(dbus-launch --sh-syntax) - export DBUS_SESSION_BUS_ADDRESS - export DBUS_SESSION_BUS_PID - - # Kill any running instances of the daemon (only used on Linux based systems) - killall -q vicar-daemon || true - killall -q vicar-telepathy || true - - echo "Starting Vicar daemon ..." - [[ -x /opt/vicar/vicar-daemon ]] && su - user -c "exec /opt/vicar/vicar-daemon& >/dev/null" - - echo "Starting Vicar-Telepathy ..." - [[ -x /opt/vicar/vicar-telepathy ]] && su - user -c "exec /opt/vicar/vicar-telepathy& >/dev/null" - - echo "Removing Vicar launch script..." - [[ -x /etc/event.d/launch-vicar ]] && rm -f /etc/event.d/launch-vicar - - echo "Deleting previous release configuration from GConf ..." - gconftool-2 --unset /apps/Maemo/vicar/routing_enabled - gconftool-2 --unset /apps/Maemo/vicar/calling_card_number - gconftool-2 --unset /apps/Maemo/vicar/dtmf_delay - gconftool-2 --unset /apps/Maemo/vicar/numbers_to_exclude - gconftool-2 --unset /apps/Maemo/vicar/dtmf_format - gconftool-2 --unset /apps/Maemo/vicar/dtmf_prefix - gconftool-2 --unset /apps/Maemo/vicar/dtmf_suffix - - echo "Creating Vicar Telepathy account ..." - [[ -x /opt/vicar/vicar-utils ]] && su - user -c "exec /opt/vicar/vicar-utils INSTALL" - - echo "Updating permissions on Vicar DB file ..." - [[ -e /home/user/vicar.db.sqlite ]] && chown user:users /home/user/vicar.db.sqlite - - echo "Creating Vicar Profiles database ..." - [[ -x /opt/vicar/vicar-utils ]] && su - user -c "exec /opt/vicar/vicar-utils CREATEDB" - - dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteDialog string:"Starting with this release, Multiple profiles can be created for routing calls via VICaR. - - Please launch VICaR to setup routing profiles." uint32:0 string:"OK" - - ;; - - abort-upgrade|abort-remove|abort-deconfigure) - ;; - - *) - echo "postinst called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - -#DEBHELPER# - -exit 0 - -