uawdijnntqw1x1x1
IP : 18.188.0.144
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,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,
OS : Linux
PATH:
/
var
/
lib
/
vim
/
..
/
python
/
..
/
dpkg
/
info
/
ispmanager-lite-common.postinst
/
/
#!/bin/bash # postinst script for coremanager # # 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 http://www.debian.org/doc/debian-policy/ or # the debian-policy package COREDIR=/usr/local/mgr5 MGR=ispmgr MGRFULL=ISPmanager-Lite . ${COREDIR}/lib/pkgsh/core_pkg_funcs.sh case "$1" in configure) cp -an ${COREDIR}/etc/dist/* ${COREDIR}/etc/ if [ -z ${2} ]; then if [ "#${ISPCONVERT}" = "#yes" ]; then : else # First install cd ${COREDIR} DisableService shellinabox test -f ${COREDIR}/etc/${MGR}.conf || cp -f ${COREDIR}/etc/${MGR}.conf-dist ${COREDIR}/etc/${MGR}.conf echo "Option FirstStart" >> ${COREDIR}/etc/${MGR}.conf grep -q UsageStatAgree ${COREDIR}/etc/${MGR}.conf || echo "Option UsageStatAgree" >> ${COREDIR}/etc/${MGR}.conf grep -q PWStrength ${COREDIR}/etc/${MGR}.conf || echo "PWStrength 2" >> ${COREDIR}/etc/${MGR}.conf chmod 600 ${COREDIR}/etc/${MGR}.conf AddMgr ${MGR} AfterinstallMgr ${MGR} fi else UnlockMgr ${MGR} AfterupdateMgr ${MGR} fi if [ -f ${COREDIR}/etc/templates/webalizer ] && grep -qE '^(# HASH __ANALYZER__)$' ${COREDIR}/etc/templates/webalizer ; then sed -i -r 's/^(\# HASH __ANALYZER__)$/\1 __LOGFILE__/' ${COREDIR}/etc/templates/webalizer || : fi if [ ! -f ${COREDIR}/etc/.awstats.changed ]; then cp ${COREDIR}/etc/dist/templates/awstats ${COREDIR}/etc/templates/ touch ${COREDIR}/etc/.awstats.changed fi CronLink ${MGR} 2>/dev/null || : AddMgr ${MGR} chmod 600 ${COREDIR}/etc/${MGR}.conf # Certificate if [ ! -f ${COREDIR}/etc/${MGR}.pem ]; then openssl genrsa -out ${COREDIR}/etc/${MGR}.pem 2048 >/dev/null 2>&1 || exit 1 chmod 400 ${COREDIR}/etc/${MGR}.pem fi grep -q "path secure-private-key" ${COREDIR}/etc/${MGR}.conf || echo "path secure-private-key ${COREDIR}/etc/${MGR}.pem" >> ${COREDIR}/etc/${MGR}.conf ReloadMgr ${MGR} ;; 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
/var/lib/vim/../python/../dpkg/info/ispmanager-lite-common.postinst