Server IP : 195.201.23.43 / Your IP : 18.222.184.40 Web Server : Apache System : Linux webserver2.vercom.be 5.4.0-192-generic #212-Ubuntu SMP Fri Jul 5 09:47:39 UTC 2024 x86_64 User : kdecoratie ( 1041) PHP Version : 7.1.33-63+ubuntu20.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 : |
#!/bin/bash set -e . /usr/share/debconf/confmodule # Automatically set version to ease maintenance of this file MAJOR_VER="${DPKG_MAINTSCRIPT_PACKAGE#mariadb-server-}" if [ -n "$DEBIAN_SCRIPT_DEBUG" ]; then set -v -x; DEBIAN_SCRIPT_TRACE=1; fi ${DEBIAN_SCRIPT_TRACE:+ echo "#42#DEBUG# RUNNING $0 $*" 1>&2 } # # - Purge logs and data only if they are ours (#307473) # - Remove the mysql user only after all his owned files are purged. # - Cleanup the initscripts only if this was the last provider of them # if [ "$1" = "purge" ] && [ -f "/var/lib/mysql/debian-$MAJOR_VER.flag" ]; then # we remove the mysql user only after all his owned files are purged rm -f /var/log/mysql.{log,err}{,.0,.[1234567].gz} rm -rf /var/log/mysql db_input high mariadb-server-$MAJOR_VER/postrm_remove_databases || true db_go || true db_get mariadb-server-$MAJOR_VER/postrm_remove_databases || true if [ "$RET" = "true" ]; then # never remove the debian.cnf when the databases are still existing # else we ran into big trouble on the next install! rm -f /etc/mysql/debian.cnf # Remove all contents from /var/lib/mysql except if it's a # directory with file system data. See #829491 for details and # #608938 for potential mysql-server leftovers which erroneously # had been renamed. # Attempt removal only if the directory hasn't already been removed # by dpkg to avoid failing on "No such file or directory" errors. if [ -d /var/lib/mysql ] then find /var/lib/mysql -mindepth 1 \ -not -path '*/lost+found/*' -not -name 'lost+found' \ -not -path '*/lost@002bfound/*' -not -name 'lost@002bfound' \ -delete # "|| true" still needed as rmdir still exits with non-zero if # /var/lib/mysql is a mount point rmdir --ignore-fail-on-non-empty /var/lib/mysql || true fi rm -rf /var/run/mysqld # this directory is created by the init script, don't leave behind userdel mysql || true fi # Automatically added by dh_installinit/12.10ubuntu1 if [ "$1" = "purge" ] ; then update-rc.d mysql remove >/dev/null fi # End automatically added section # Automatically added by dh_systemd_enable/12.10ubuntu1 if [ "$1" = "remove" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper mask 'mariadb.service' >/dev/null || true fi fi if [ "$1" = "purge" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper purge 'mariadb.service' >/dev/null || true deb-systemd-helper unmask 'mariadb.service' >/dev/null || true fi fi # End automatically added section # Automatically added by dh_systemd_enable/12.10ubuntu1 if [ "$1" = "remove" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper mask 'mariadb.service' >/dev/null || true fi fi if [ "$1" = "purge" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper purge 'mariadb.service' >/dev/null || true deb-systemd-helper unmask 'mariadb.service' >/dev/null || true fi fi # End automatically added section # Automatically added by dh_installdebconf/12.10ubuntu1 if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then . /usr/share/debconf/confmodule db_purge fi # End automatically added section fi # Modified dh_systemd_start snippet that's not added automatically due /etc/init.d/mysql if [ -d /run/systemd/system ]; then systemctl --system daemon-reload >/dev/null || true fi exit 0Private