#!/bin/sh
#
# see: dh_installdeb(1)

set -e

case "$1" in
    install|upgrade)
        # Move original conf file aside to be able to rollback to it by uninstalling this package.
        dpkg-divert --add --rename --package yandex-rtc-pam-sshd --divert /etc/pam.d/sshd.diverted /etc/pam.d/sshd
    ;;

    abort-upgrade)
    ;;

    *)
        echo "preinst 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
