HEX
Server: nginx/1.18.0
System: Linux hqnl0246134.online-vm.com 5.4.0-135-generic #152-Ubuntu SMP Wed Nov 23 20:19:22 UTC 2022 x86_64
User: www-data (33)
PHP: 7.4.33
Disabled: phpinfo,disk_free_space,disk_total_space,diskfreespace,dl,exec,opcache_get_configuration,opcache_get_status,passthru,pclose,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_waitpid,pcntl_wait,pcntl_wexitstatus,pcntl_wifcontinued,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,popen,posix_getpwuid,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,posix_uname,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,show_source,system,exec,passthru,shell_exec,system,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source
Upload Files
File: /var/lib/dpkg/info/debconf.postinst
#!/bin/sh
set -e

if [ -z "$DEBIAN_HAS_FRONTEND" ] && [ "$1" = configure ] && [ -n "$2" ] && \
   dpkg --compare-versions "$2" lt 1.1.0; then
	# Transition from old database format before debconf starts up.
	if dpkg --compare-versions "$2" lt 0.9.00; then
		if [ -e /var/lib/debconf/config.db -o -e /var/lib/debconf/templates.db ]; then
			/usr/share/debconf/transition_db.pl
		fi
		# This package used to add itself to apt.conf. That could result in
		# a zero-byte file, since it no longer does. Detect that and remove
		# the file.
		if [ ! -s /etc/apt/apt.conf ]; then
			rm -f /etc/apt/apt.conf
		fi
	fi
	
	# Fix up broken db's before debconf starts up.
	if dpkg --compare-versions "$2" lt 1.0.25; then
		/usr/share/debconf/fix_db.pl
	fi
	
	# configdb splits into passworded and non-passworded parts, before debconf
	# starts up. Do so only if the debconf.conf has the new databases in it.
	if dpkg --compare-versions "$2" lt 1.1.0 &&
	   perl -e 'use Debconf::Db; Debconf::Db->load; for (@ARGV) { exit 1 unless
	            Debconf::DbDriver->driver($_) }' config passwords; then
	   	# copies in only the passwords, of course
	   	debconf-copydb config passwords
		# makes a new config with only non-passwords in it
		debconf-copydb config newconfig \
			-c Name:newconfig \
			-c Driver:File \
			-c Reject-Type:password \
			-c Filename:/var/cache/debconf/newconfig.dat \
			-c Mode:644
		mv -f /var/cache/debconf/newconfig.dat /var/cache/debconf/config.dat
	fi
fi

. /usr/share/debconf/confmodule

if [ "$1" = configure ] && [ -n "$2" ] && dpkg --compare-versions "$2" lt 1.3.11; then
	# Remove old debconf database, and associated cruft in /var/lib/debconf.
	# In fact, the whole directory can go! Earlier versions of debconf in the
	# 0.9.x series kept it just in case, so make sure to delete it on upgrade
	# from any of those versions, or even older versions.
	if dpkg --compare-versions "$2" lt 0.9.50; then
		rm -rf /var/lib/debconf
	fi

	# Kill db cruft.
	if dpkg --compare-versions "$2" lt 0.9.73; then
		# It may not be present, if upgrading from long ago.
		db_unregister foo/bar || true
		db_unregister debconf/switch-to-slang || true
	fi
	if dpkg --compare-versions "$2" lt 1.3.11; then
		db_unregister debconf/showold || true
	fi

	# The Text frontend became the Readline frontend.
	if dpkg --compare-versions "$2" lt 1.0.10; then
		db_get debconf/frontend || true
		if [ "$RET" = Text ]; then
			db_set debconf/frontend Readline || true
		fi
	fi
fi

# Automatically added by dh_installdeb/12.2.3ubuntu1
dpkg-maintscript-helper rm_conffile /etc/bash_completion.d/debconf 1.5.58~ -- "$@"
# End automatically added section