Skip to content

Instantly share code, notes, and snippets.

View mgkuhn's full-sized avatar

Markus Kuhn mgkuhn

View GitHub Profile
@mgkuhn
mgkuhn / preinst
Created July 17, 2018 18:04
Better check_eula_acceptance() function for msodbcsql17/DEBIAN/preinst
check_eula_acceptance()
{
case "$ACCEPT_EULA" in
[Yy]|[Yy]es|[Tt]rue)
db_set msodbcsql/accept_eula true
;;
[Nn]|[Nn]o|[Ff]alse)
db_set msodbcsql/accept_eula false
;;
'') ;;