HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux Bradford-Sitios 6.14.0-1017-azure #17~24.04.1-Ubuntu SMP Mon Dec 1 20:10:50 UTC 2025 x86_64
User: www-data (33)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/lib/dpkg/info/dash.postrm
#!/bin/sh
#
# This is to allow downgrades to version 0.5.11+git20210903+057cd650a4ed-3 and
# earlier which do not use the update-shells trigger of debianutils to manage
# /etc/shells.
#
# update-shells will be called at the end of the downgrade because a trigger of
# debianutils on the removal of /usr/share/debianutils/shells.d/dash will be
# activated when downgrading to a version of dash that doesn't ship that file.
# But a non-existing /usr/share/debianutils/shells.d/dash tells update-shells
# to remove dash from /etc/shells.
#
# To prevent this from happening, remove /usr/share/debianutils/shells.d/dash
# which will be removed by the downgrade anyways, then run update-shells which
# will remove dash from /etc/shells and then add it again by running add-shell.
# Subsequent calls to update-shells in the debianutils trigger will now not
# remove dash from /etc/shells anymore because the update-shells call in this
# script updated /var/lib/shells.state with the information that it doesn't
# manage dash via update-shells anymore.

set -e

if [ "$1" = upgrade ] \
	&& dpkg --compare-versions "$2" le 0.5.11+git20210903+057cd650a4ed-3 \
	&& [ -e /usr/share/debianutils/shells.d/dash ] \
	&& [ -x "$(command -v update-shells 2>/dev/null)" ] \
	&& [ -x "$(command -v add-shell 2>/dev/null)" ]; then
	rm /usr/share/debianutils/shells.d/dash
	update-shells
	add-shell /bin/dash
fi

# Automatically added by dh_installmenu/13.14.1ubuntu5
if [ -x "`command -v update-menus`" ] && [ -x "$DPKG_ROOT`command -v update-menus`" ]; then update-menus ; fi
# End automatically added section