403Webshell
Server IP : 202.155.9.38  /  Your IP : 216.73.216.252
Web Server : LiteSpeed
System : Linux srv733443859 5.15.0-179-generic #189-Ubuntu SMP Tue May 5 18:20:56 UTC 2026 x86_64
User : rabbi4843 ( 1044)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/lib/dpkg/info/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/lib/dpkg/info/comerr-dev:amd64.postrm
#!/bin/sh

# Abort on error.
set -e

symlink_match()
{
	local SYMLINK="$1"
	local SYMLINK_TARGET="$2"

	[ "$(readlink "$SYMLINK")" = "$SYMLINK_TARGET" ] || \
	[ "$(readlink -f "$SYMLINK")" = "$SYMLINK_TARGET" ]
}

SYMLINK=/usr/share/doc/comerr-dev
SYMLINK_TARGET=libcomerr2
SYMLINK_TARGET2=libcom-err2

if [ "$1" = "purge" ] && [ -h "${SYMLINK}.dpkg-backup" ]
then
	rm -f "${SYMLINK}.dpkg-backup"
fi
if [ "$1" = "abort-install" -o "$1" = "abort-upgrade" ] &&
   [ -n "$2" ] && [ ! -e "$SYMLINK" ] && [ -h "${SYMLINK}.dpkg-backup" ]
then
    if symlink_match "${SYMLINK}.dpkg-backup" "$SYMLINK_TARGET" ||
       symlink_match "${SYMLINK}.dpkg-backup" "$SYMLINK_TARGET2"
    then
	echo "Restoring backup of $SYMLINK ..."
	mv "${SYMLINK}.dpkg-backup" "$SYMLINK"
    fi
fi



exit 0

Youez - 2016 - github.com/yon3zu
LinuXploit