HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //var/lib/dpkg/info/mariadb-server.prerm
#!/bin/sh
set -e

# Automatically added by dh_installsystemd/13.14.1ubuntu5
if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = remove ] && [ -d /run/systemd/system ] ; then
	deb-systemd-invoke stop 'mariadb.service' >/dev/null || true
fi
# End automatically added section
# Automatically added by dh_installinit/13.14.1ubuntu5
if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = remove ] && [ -x "/etc/init.d/mariadb" ] ; then
	invoke-rc.d --skip-systemd-native mariadb stop || exit 1
fi
# End automatically added section


# Modified dh_systemd_start snippet that's not added automatically
if [ -d /run/systemd/system ]
then
  deb-systemd-invoke stop mariadb.service >/dev/null
  # Modified dh_installinit snippet to only run with sysvinit
elif [ -x "/etc/init.d/mariadb" ]
then
  invoke-rc.d mariadb stop || exit $?
fi