mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
ed0d295e3a
preflight/postflight instead, so they are run every time a PKG is installed, not only for a fresh installation support-files/MacOSX/Makefile.am: - Fix for BUG#11380 (as recommened by JimW): renamed the preinstall/postinstall scripts to preflight/postflight instead, so they are run every time, not only for a fresh installation support-files/MacOSX/postflight.sh: - Fix for BUG#11380 (as recommened by JimW): renamed the preinstall/postinstall scripts to preflight/postflight instead, so they are run every time, not only for a fresh installation support-files/MacOSX/preflight.sh: - Fix for BUG#11380 (as recommened by JimW): renamed the preinstall/postinstall scripts to preflight/postflight instead, so they are run every time, not only for a fresh installation - fixed comment typo
18 lines
584 B
Bash
18 lines
584 B
Bash
#!/bin/sh
|
|
#
|
|
# preflight - this script will be executed before the MySQL PKG
|
|
# installation will be performed.
|
|
#
|
|
# If this package has been compiled with a prefix ending with "mysql" (e.g.
|
|
# /usr/local/mysql or /opt/mysql), it will rename any previously existing
|
|
# directory with this name before installing the new package (which includes
|
|
# a symlink named "mysql", pointing to the newly installed directory, which
|
|
# is named mysql-<version>)
|
|
#
|
|
|
|
PREFIX="@prefix@"
|
|
BASENAME=`basename $PREFIX`
|
|
|
|
if [ -d $PREFIX -a ! -L $PREFIX -a $BASENAME = "mysql" ] ; then
|
|
mv $PREFIX $PREFIX.bak
|
|
fi
|