https://t.me/RX1948
Server : nginx/1.24.0
System : Linux ip-172-31-33-48 6.14.0-1011-aws #11~24.04.1-Ubuntu SMP Fri Aug 1 02:07:25 UTC 2025 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
Directory :  /var/lib/dpkg/info/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/lib/dpkg/info/libpam-runtime.postinst
#!/bin/sh -e

. /usr/share/debconf/confmodule

calculate_md5sum()
{
	configfile="$1"
	sed -n -e'1,/# here are the per-package modules (the "Primary" block)/p;
	          /# here.s the fallback if no module succeeds/,/# and here are more per-package modules (the "Additional" block)/p;
	          /# end of pam-auth-update config/,$p' \
	    "$DPKG_ROOT"/etc/pam.d/"$configfile" | md5sum | awk '{ print $1 }'
}

# If the user has removed the config file, respect this sign of dementia
# -- only create on package install.
force=
if [ -z "$2" ] || dpkg --compare-versions "$2" lt 1.0.1-11
then
	force=--force
	for configfile in common-auth common-account common-session  \
	    common-password
	do
		if [ -f "$DPKG_ROOT"/etc/pam.d/$configfile ] && \
		    ! fgrep -q $(calculate_md5sum $configfile) \
		    "$DPKG_ROOT"/usr/share/pam/$configfile.md5sums 2>/dev/null
		then
			force=
		fi
	done
fi

pam-auth-update --root "$DPKG_ROOT" --package $force

if [ -n "$force" ]; then
	rm -f "$DPKG_ROOT"/etc/pam.d/common-auth.pam-old \
	      "$DPKG_ROOT"/etc/pam.d/common-account.pam-old \
	      "$DPKG_ROOT"/etc/pam.d/common-password.pam-old \
	      "$DPKG_ROOT"/etc/pam.d/common-session.pam-old
fi



https://t.me/RX1948 - 2025