#!/bin/sh

set -e

. /usr/share/debconf/confmodule

PLUGINS="$(cd /usr/share/dokuwiki/plugins-extra && ls -d */ | sed -e 's|/$|,|g')"
db_subst dokuwiki-plugins/plugins choices $(echo ${PLUGINS} | sed -e 's|,$||')

db_fset dokuwiki-plugins/plugins seen false

db_input high dokuwiki-plugins/plugins || true
db_go

db_stop