#!/bin/sh
# postinst script for 66.


#set -e


case "$1" in
    configure)
		echo "Using the '66 status' command to trigger the 66 migration process"
		66 status && getent passwd $(basename -a /home/*) | awk -F: '{print $1}' | while read user; do runuser -u "${user}" -- 66 status; done; 
	;;
	
	abort-upgrade|abort-remove|abort-deconfigure)
	;;
	
    *)
        echo "postinst called with unknown argument '$1'" >&2
        exit 1
    ;;
esac

#DEBHELPER#

exit 0
