gzuncompress NineSec Team Shell
NineSec Team Shell
Server IP : 172.19.0.2  /  Your IP : 216.73.216.178
Web Server : Apache/2.4
System : Linux 880f91b28fd7 5.15.0-117-generic #127~20.04.1-Ubuntu SMP Thu Jul 11 15:36:12 UTC 2024 x86_64
User : tomlinde ( 155017)
PHP Version : 5.6.40
Disable Function : dl, syslog, opcache_get_status
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /var/lib/python/../dpkg/info/

[  Home  ][  C0mmand  ][  Upload File  ][  Lock Shell  ][  Logout  ]

Current File : //var/lib/python/../dpkg/info/msodbcsql18.postrm
#!/bin/bash -e

. /usr/share/debconf/confmodule

case "$1" in
  purge)
    db_purge
  ;;

  remove)
    odbcinst -u -d -n "ODBC Driver 18 for SQL Server"
	db_purge
  ;;

  upgrade)
    odbcinst -u -d -n "ODBC Driver 18 for SQL Server"
  ;;

  abort-install)
    # No need to call odbcinst to remove the driver entry, the driver hasn't been added yet.
    # It would also break the existing Driver 13 installation (installed in an old way).
	db_purge
  ;;

  abort-upgrade)
    # if the user doesn't accept the license we need to set it back to accepted (the state of the
    # old package should stay the same).
    db_set msodbcsql/accept_eula true

    if [ "$2" = "13.0.0.0.preview-1" ]; then
        # Because the 13.0.0.0.preview-1 package adds the driver to odbcinst.ini unconditionally,
        # it will increase the count upon an unsuccessful upgrade. We need to decrease the count here.
        odbcinst -u -d -n "ODBC Driver 13 for SQL Server"
    fi
  ;;

  failed-upgrade|disappear)
  ;;

  *)
    echo "postrm called with an unknown argument '$1'" >&2
    exit 1
esac

exit 0

NineSec Team - 2022