source: mysql-tuneup/trunk/fuentes/debian/mysql-tuneup.prerm @ 4190

Last change on this file since 4190 was 4190, checked in by Juanma, 2 years ago

Diverted service file

File size: 593 bytes
Line 
1#!/bin/sh
2set -e
3
4# Template for diversions
5ORIG_FILE="/lib/systemd/system/mysql.service"
6OUR_FILE="/usr/share/mysql-tuneup/mysql.service.lliurex"
7OUR_PACKAGE="mysql-tuneup"
8
9case $1 in
10        remove|purge|abort-install|disappear)
11                if [ -f ${ORIG_FILE}.real ] ; then
12                        rm -f ${ORIG_FILE}
13                        dpkg-divert --package  ${OUR_PACKAGE} --rename --quiet --remove ${ORIG_FILE}|| true
14                fi
15               
16                ;;
17        *)
18                echo "Nothing to do"
19                ;;
20esac
21
22# Other Stuff #
23
24#DEBHELPER#
Note: See TracBrowser for help on using the repository browser.