#!/bin/sh

set -e

conffile=/etc/golang/goinstall.conf

. /usr/share/debconf/confmodule

if [ -f $conffile ] ; then
    if grep -q DASHBOARD $conffile; then
        :;
    fi
    . $conffile
    if [ yes = "$DASHBOARD" ] ; then
        DASHBOARD=true
    else
        DASHBOARD=false
    fi
    db_set golang-weekly-tools/dashboard "$DASHBOARD"
fi

db_input high golang-weekly-tools/dashboard || [ $? -eq 30 ]
db_go || true
