HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/lib/dpkg/info/isc-dhcp-client.postrm
#!/bin/sh

set -e

if [ "$1" = "purge" ]; then
	# Remove lease database
	rm -f /var/lib/dhcp/dhclient*.leases
	rm -f /var/lib/dhcp/dhclient*.lease

	# Try to remove directory
	if [ -d /var/lib/dhcp ]; then
		rmdir --ignore-fail-on-non-empty /var/lib/dhcp/
	fi

	rmdir --ignore-fail-on-non-empty /etc/dhcp

fi

# Automatically added by dh_apparmor/3.0.4-2ubuntu2.2
if [ "$1" = "purge" ] && ! [ -e "/etc/apparmor.d/sbin.dhclient" ] ; then
    rm -f "/etc/apparmor.d/disable/sbin.dhclient" || true
    rm -f "/etc/apparmor.d/force-complain/sbin.dhclient" || true
    rm -f "/etc/apparmor.d/local/sbin.dhclient" || true
    rm -f /var/cache/apparmor/*/"sbin.dhclient" || true
    rmdir /etc/apparmor.d/disable 2>/dev/null || true
    rmdir /etc/apparmor.d/local   2>/dev/null || true
    rmdir /etc/apparmor.d         2>/dev/null || true
fi
# End automatically added section