#!/bin/bash
# reconfigure: no
# reconfigure-title: Administrator Initialization
# reconfigure-description: Configure the initial system administrator account.

[ -n "$_TURNKEY_INIT" ] && exit 0

. /etc/default/inithooks
if [ "$(echo $SUDOADMIN | tr [A-Z] [a-z] )" = "true" ]; then
    turnkey-sudoadmin on --disable-setpass
elif [ "$(echo $SUDOADMIN | tr [A-Z] [a-z] )" = "false" ]; then
    turnkey-sudoadmin off --disable-setpass
fi

