File: cleanup

package info (click to toggle)
mariadb-connector-python 1.1.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 812 kB
  • sloc: python: 6,099; ansic: 4,896; sh: 23; makefile: 14
file content (7 lines) | stat: -rwxr-xr-x 389 bytes parent folder | download
1
2
3
4
5
6
7
#!/bin/bash
# based off of https://salsa.debian.org/perl-team/modules/packages/libdbd-mariadb-perl/-/blob/3f83abd55844ec22ba9b6d8f5a2a3ebdcd0ec3b6/debian/tests/pkg-perl/smoke-cleanup 
set -ex

/usr/bin/mariadb-admin --user=${MARIADB_USER} --socket=${MARIADB_UNIX_PORT} shutdown 2>&1 || \
[ ! -s "${MARIADB_PIDFILE}" ] || /bin/kill $(cat "${MARIADB_PIDFILE}") || true
rm -rf ${MARIADB_DIR}