#!/bin/sh set -e case "${1}" in configure) . /usr/share/debconf/confmodule db_get open-infrastructure-root-shell/setuid-root SETUID_ROOT="${RET}" # boolean db_stop case "${SETUID_ROOT}" in true) echo -n "Adding setuid bit on /bin/root-shell..." # don't stop on errors for robustness reasons chown root:root /bin/root-shell || true chmod 4755 /bin/root-shell || true echo " done." ;; false) echo -n "Removing setuid bit on /bin/root-shell..." # don't stop on errors for robustness reasons chown root:root /bin/root-shell || true chmod 0755 /bin/root-shell || true echo " done." ;; esac ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`${1}'" >&2 exit 1 ;; esac #DEBHELPER# exit 0