403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.50
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
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
          fi
      fi
      rm -f /etc/default/motd-news.wasremoved
    ;;

    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