Skip to content

Instantly share code, notes, and snippets.

Avatar

Markus Kuhn mgkuhn

View GitHub Profile
@mgkuhn
mgkuhn / preinst
Created Jul 17, 2018
Better check_eula_acceptance() function for msodbcsql17/DEBIAN/preinst
View 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
;;
'') ;;