403Webshell
Server IP : 104.21.4.30  /  Your IP : 104.23.243.245
Web Server : Apache
System : Linux keen-cori.18-142-40-148.plesk.page 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 06:59:36 UTC 2025 x86_64
User : simottodesign.com_2tntp341vs7 ( 10011)
PHP Version : 8.3.31
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  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/drweb-daemon.prerm
#!/bin/sh
# ESP Package Manager v6.0.2 Dr.Web Edition
BackupFile()
{
    if [ -f "$1" ] ; then
        if [ -f "$1.drwebsave" ] ; then
            TIMESTAMP=`date "+%Y%m%d-%k_%M_%S"`
            dest="$1.$TIMESTAMP"
        else
            dest="$1.drwebsave"
        fi
        cp -p "$1" "$dest"
        if [ $? -ne 0 ] ; then
            echo "Error: can't backup $1!"
            return 3
        else
            echo "Info: backup file $1 is saved to $dest."
        fi
    else
        echo ""
        echo "Error: can't find file $1 for backup!"
        echo ""
        return 1
    fi
    return 0;
}
check_config() {
    config="$1"
    template="$2"
    save=${3:-"no"}
    if ( cmp "$config" "$template" >/dev/null 2>/dev/null ) ; then
        rm -f "$config"
    else
        if [ "$save" = "yes" -a -f "$config" ] ; then
            if ( BackupFile "$config" ) ; then
                rm -f "$config"
            fi
        fi
    fi
}
    check_config /etc/drweb/monitor/daemon.mmc /opt/drweb/doc/daemon/daemon.mmc no
    check_config /etc/drweb/templates/drwebd/msg.tmpl /opt/drweb/doc/daemon/msg.tmpl no
rm_symlink() {
    if [ -L "$1" ] ; then
        rm -f "$1"
    fi
}
rm_man_symlinks() {
    prefix=$1
    mans=$2
    for mandir in $prefix/man/man* ; do
        for dir in /usr/local/share/man /usr/share/man ; do
            if [ -d "$dir/`basename $mandir`" ] ; then
                for man in $mans ; do
                    rm_symlink "$dir/`basename $mandir`/$man"
                done
            fi
        done
    done
}
rm_man_symlinks /opt/drweb "drwebd.1 drwebdc.1" "$MANS"
if which invoke-rc.d >/dev/null 2>&1; then
    invoke-rc.d drwebd stop || true
else
    /etc/init.d/drwebd stop || true
fi

Youez - 2016 - github.com/yon3zu
LinuXploit