#!/bin/sh set -e case "${1}" in configure) . /usr/share/debconf/confmodule db_get powerline/enable POWERLINE_ENABLE="${RET}" # boolean db_stop rm -f /etc/profile.d/zz-powerline.sh for ENABLE in $(echo ${POWERLINE_ENABLE} | sed -e 's|,| |g') do case "${ENABLE}" in bash) ln -sf /usr/share/powerline/integrations/powerline.sh /etc/profile.d/zz-powerline.sh ;; esac done ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`${1}'" >&2 exit 1 ;; esac # Automatically added by dh_python3 if which py3compile >/dev/null 2>&1; then py3compile -p powerline /usr/share/powerline fi if which pypy3compile >/dev/null 2>&1; then pypy3compile -p powerline /usr/share/powerline || true fi # End automatically added section # Automatically added by dh_installsystemduser/13.3 if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then # This will only remove masks created by d-s-h on package removal. deb-systemd-helper --user unmask 'powerline-daemon.service' >/dev/null || true # was-enabled defaults to true, so new installations run enable. if deb-systemd-helper --quiet --user was-enabled 'powerline-daemon.service' ; then # Enables the unit on first installation, creates new # symlinks on upgrades if the unit file has changed. deb-systemd-helper --user enable 'powerline-daemon.service' >/dev/null || true else # Update the statefile to add new symlinks (if any), which need to be # cleaned up on purge. Also remove old symlinks. deb-systemd-helper --user update-state 'powerline-daemon.service' >/dev/null || true fi fi # End automatically added section exit 0