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/motd-news-config.postinst
#!/bin/sh
# postinst script for motd-news-config
#
# see: dh_installdeb(1)

set -e

# summary of how this script can be called:
#        * <postinst> `configure' <most-recently-configured-version>
#        * <old-postinst> `abort-upgrade' <new version>
#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
#          <new-version>
#        * <postinst> `abort-remove'
#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
#          <failed-install-package> <version> `removing'
#          <conflicting-package> <version>
# for details, see https://www.debian.org/doc/debian-policy/ or
# the debian-policy package


case "$1" in
    configure)
      # only run on new installs, $2 will be empty then
      if [ -z "$2" ]; then
          # /e/d/motd-news was moved from pkg:base-files to this package.
          # base-files runs rm_conffile which, if it was modified, leaves
          # /e/d/motd-news.dpkg-bak around. We want to preserve that *changed*
          # config file in this migration, and this is something that
          # rm_conffile is not handling.  In that case, let's put the backup
          # file back in place
          if [ -e /etc/default/motd-news.dpkg-bak ]; then
              mv /etc/default/motd-news.dpkg-bak /etc/default/motd-news
          fi
          if [ -e /etc/default/motd-news.wasremoved ] && [ -e /etc/default/motd-news ]; then
              sed -i -e 's/^ENABLED=1/# Changed by motd-news-config.postinst:\n# config file was manually removed - disable the service\nENABLED=0/' /etc/default/motd-news
              rm /etc/default/motd-news.wasremoved
          fi
      fi
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.



exit 0

Youez - 2016 - github.com/yon3zu
LinuXploit