403Webshell
Server IP : 13.213.54.232  /  Your IP : 216.73.216.72
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ip-172-31-17-110 6.8.0-1029-aws #31~22.04.1-Ubuntu SMP Thu Apr 24 21:16:18 UTC 2025 x86_64
User : www-data ( 33)
PHP Version : 7.1.33-67+ubuntu22.04.1+deb.sury.org+1
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,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/self/root/var/lib/dpkg/info/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/var/lib/dpkg/info/mysql-common.postinst
#!/bin/sh
set -e

# Automatically added by dh_installdeb/13.5.2ubuntu1
dpkg-maintscript-helper rm_conffile /etc/mysql/conf.d/.keepme 5.6.22-1\~ mysql-common -- "$@"
dpkg-maintscript-helper rm_conffile /etc/mysql/my.cnf 5.6.22-1\~ mysql-common -- "$@"
# End automatically added section


# This code needs to go after the debhelper snippets so that it runs after
# dpkg-maintscript-helper rm_conffile on /etc/mysql/my.cnf. As a one off, if
# my.cnf.dpkg-bak exists after this stage then we rename it to
# /etc/mysql/my.cnf.migrated, add an explanatory note to the top and add it is
# a high priority alternative so it gets used in favour of any other my.cnf
# shipped by variants. The /etc/mysql/my.cnf.migrated file will not be owned by
# any package (just like /etc/mysql/my.cnf.dpkg-bak would have been) but we
# rename it since it will be in active use, the user may not expect a .dpkg-bak
# file to be in use and we do not want to surprise the user.

if [ "$1" = "configure" ] && [ -f /etc/mysql/my.cnf.fallback ]; then
    # Low priority fallback for client use when no server is installed.
    update-alternatives --install /etc/mysql/my.cnf my.cnf /etc/mysql/my.cnf.fallback 100
fi

if [ "$1" = "configure" -a -f /etc/mysql/my.cnf.dpkg-bak ] && dpkg --compare-versions "$2" le "5.6.19-1~exp1ubuntu2~"; then
    echo "Moving /etc/mysql/my.cnf.dpkg-bak to /etc/mysql/my.cnf.migrated"
    cat - /etc/mysql/my.cnf.dpkg-bak <<EOT > /etc/mysql/my.cnf.migrated
# This file has been automatically moved from your previous
# /etc/mysql/my.cnf, with just this comment added at the top, to maintain MySQL
# operation using your previously customised configuration.

# To switch to the new packaging configuration for automated management of
# /etc/mysql/my.cnf across multiple variants:
#
# 1. Move your customisations from this file to /etc/mysql/conf.d/ and
#    to /etc/mysql/<variant>.conf.d/ as appropriate.
# 2. Run "update-alternatives --remove my.cnf /etc/mysql/my.cnf.migrated"
# 3. Remove the file /etc/mysql/my.cnf.migrated

EOT
    rm /etc/mysql/my.cnf.dpkg-bak
    echo "Using your previous configuration through /etc/mysql/my.cnf.migrated"
    update-alternatives --install /etc/mysql/my.cnf my.cnf /etc/mysql/my.cnf.migrated 300
fi

Youez - 2016 - github.com/yon3zu
LinuXploit