fix postinst trigger (#4774)