403Webshell
Server IP : 195.114.193.97  /  Your IP : 216.73.217.93
Web Server : LiteSpeed
System : Linux host 5.15.0-126-generic #136-Ubuntu SMP Wed Nov 6 10:38:22 UTC 2024 x86_64
User : sembi4241 ( 1126)
PHP Version : 8.1.33
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/lsphp80-pgsql.postinst
#!/bin/sh

#set -ex

#EXTRA#

if [ "$1" = "configure" ]; then
  inidir=/usr/local/lsws/lsphp80/etc/php/8.0/mods-available

  if [ -e /usr/local/lsws/lsphp80/bin/php-maintscript-helper ] ; then
    . /usr/local/lsws/lsphp80/bin/php-maintscript-helper
  elif [ -e /usr/lib/php/php-maintscript-helper ] ; then
    . /usr/lib/php/php-maintscript-helper
  fi

  for dsoname in pgsql pdo_pgsql; do
    inifile=${dsoname}.ini

    # Register new conffile with UCF
    ucf /usr/local/lsws/lsphp80/share/lsphp80-pgsql/pgsql/${inifile} ${inidir}/${inifile}
    ucfr --force lsphp80-pgsql ${inidir}/${inifile}
      
    if [ -f "${inidir}/${inifile}.dpkg-new" ]; then
      md5sum="$(md5sum ${inidir}/${inifile}.dpkg-new | sed -e 's/ .*//')"
      old_md5sum="$(md5sum ${inidir}/${inifile} | sed -e 's/ .*//')"
      if [ "$md5sum" = "$old_md5sum" ]; then
        mv "${inidir}/${inifile}.dpkg-new" "${inidir}/${inifile}"
      fi
    fi
  
    if [ -e /usr/local/lsws/lsphp80/bin/phpenmod ] ; then
      /usr/local/lsws/lsphp80/bin/phpenmod ALL ALL ${dsoname}
    elif [ -e /usr/sbin/phpenmod ] ; then
      phpenmod ALL ALL ${dsoname}
    fi
  done
fi

exit 0

Youez - 2016 - github.com/yon3zu
LinuXploit