HEX

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit - prohibited by configuration in /home/u547966/brikov.ru/www/wp-content/plugins/admin-menu-editor/menu-editor.php on line 745
Server: Apache
System: Linux 4.19.0-0.bpo.9-amd64 x86_64 at red40
User: u547966 (5490)
PHP: 5.3.29-mh2
Disabled: syslog, dl, popen, proc_open, proc_nice, proc_get_status, proc_close, proc_terminate, posix_mkfifo, chown, chgrp, accelerator_reset, opcache_reset, accelerator_get_status, opcache_get_status, 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_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority
Upload Files
File: //var/lib/dpkg/info/ctrlsh-unix-webserver.postinst
#!/bin/sh
# vim: ts=4 sts=4 sw=4 et ai
# postinst script for ctrlsh-core
#
# see: dh_installdeb(1)

# 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 http://www.debian.org/doc/debian-policy/ or
# the debian-policy package

set -e

case "$1" in
    configure|abort-upgrade|abort-remove|abort-deconfigure)

        httpd_header_conf_path="/opt/ctrlsh/etc/apache/httpd-header.conf";
        if [ ! -f $httpd_header_conf_path ]; then
            echo "Include httpd-header.conf" > $httpd_header_conf_path;
        fi

        for extra_file in /opt/ctrlsh/etc/apache/httpd-footer.conf \
            /opt/ctrlsh/etc/apache/httpd-stub.conf \
            /etc/network/dedicated-ip; do
            [ ! -f $extra_file ] && touch $extra_file;
        done

        chown root:ctrlsh -R /opt/ctrlsh/etc/templates /opt/ctrlsh/etc/apache
        chmod 0555 /opt/ctrlsh/etc/templates /opt/ctrlsh/etc/templates/nginx
        find /opt/ctrlsh/etc/templates -type f -exec chmod 0444 {} \;
    ;;

    *)
        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