uawdijnntqw1x1x1
IP : 18.119.112.17
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
/
xml-core
/
..
/
xml-core
/
..
/
python
/
..
/
dpkg
/
info
/
coremanager-pkg-mysql.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=core . ${COREDIR}/lib/pkgsh/core_pkg_funcs.sh if lsb_release -c -s | grep -Eq "xenial|bionic|focal" && [ -e /etc/mysql/mysql.conf.d/mysqld.cnf ]; then MYCNF=/etc/mysql/mysql.conf.d/mysqld.cnf else MYCNF=/etc/mysql/my.cnf fi case "$1" in configure) if [ -z ${2} ]; then if [ "#${ISPCONVERT}" = "#yes" ]; then if [ -f ${COREDIR}/etc/common.conf ]; then if [ ! -f /root/.my.cnf ]; then PASS=$(sed -n -r '/section\s+name="mysql/,/\/section/{ /rootpassword/ s/\s*<\/*property(\sname="rootpassword")*>//gp }' ${COREDIR}/etc/common.conf) touch /root/.my.cnf chmod 0400 /root/.my.cnf echo "[client]" > /root/.my.cnf echo "user = root" >> /root/.my.cnf echo "password = ${PASS}" >> /root/.my.cnf fi fi ReloadMgr all else # Fix #28109 if ! grep -qE "^innodb_file_per_table" ${MYCNF} ; then sed -i -r '/\[mysqld\]/a innodb_file_per_table = 1' ${MYCNF} fi if ! grep -qE '\s*log-error=' ${MYCNF} ; then sed -i -r '/\[mysqld_safe\]/a log-error=/var/log/mysql.log' ${MYCNF} fi # Fix #ISP-1299 # libmariadb does not support caching_sha2_password password type. Fallback to native(for alt php) if [ "$(lsb_release -c -s)" = "focal" ]; then if ! grep -qE '^\s*default-authentication-plugin=mysql_native_password' ${MYCNF} ; then sed -i -r '/\[mysqld\]/a default-authentication-plugin=mysql_native_password' ${MYCNF} fi if [ -f /etc/mysql/my.cnf ] && ! grep -qE '\!includedir /etc/mysql/mysql.conf.d/' /etc/mysql/my.cnf ; then echo '!includedir /etc/mysql/mysql.conf.d/' >> /etc/mysql/my.cnf fi fi ReloadService mysql ReloadMgr all # Afterinstall AfterinstallModule ${MGR} mysql fi fi if ! grep -qE "^local-infile" ${MYCNF} ; then sed -i -r '/\[mysqld\]/a local-infile=0' ${MYCNF} ReloadService mysql 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
/var/lib/xml-core/../xml-core/../python/../dpkg/info/coremanager-pkg-mysql.postinst