Server IP : 128.199.20.84 / Your IP : 172.70.131.208 Web Server : Apache/2.4.41 (Ubuntu) System : Linux competent-maruti 5.4.0-128-generic #144-Ubuntu SMP Tue Sep 20 11:00:04 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.0.20 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF Directory (0755) : /var/lib/python/../python/../python/../python/../python/../dpkg/info/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
#!/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