Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
c1bdbff8
Commit
c1bdbff8
authored
May 13, 2013
by
Balasubramanian Kandasamy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding fix for Bug#16798868
parent
35654a6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
support-files/mysql.spec.sh
support-files/mysql.spec.sh
+29
-0
No files found.
support-files/mysql.spec.sh
View file @
c1bdbff8
...
@@ -974,6 +974,35 @@ mv -f $STATUS_FILE ${STATUS_FILE}-LAST # for "triggerpostun"
...
@@ -974,6 +974,35 @@ mv -f $STATUS_FILE ${STATUS_FILE}-LAST # for "triggerpostun"
#scheduled service packs and more. Visit www.mysql.com/enterprise for more
#scheduled service packs and more. Visit www.mysql.com/enterprise for more
#information."
#information."
%preun
-n
MySQL-server%
{
product_suffix
}
# Which '$1' does this refer to? Fedora docs have info:
# " ... a count of the number of versions of the package that are installed.
# Action Count
# Install the first time 1
# Upgrade 2 or higher (depending on the number of versions installed)
# Remove last version of package 0 "
#
# http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch09s04s05.html
if
[
$1
=
0
]
;
then
# Stop MySQL before uninstalling it
if
[
-x
%
{
_sysconfdir
}
/init.d/mysql
]
;
then
%
{
_sysconfdir
}
/init.d/mysql stop
>
/dev/null
# Remove autostart of MySQL
# use chkconfig on Enterprise Linux and newer SuSE releases
if
[
-x
/sbin/chkconfig
]
;
then
/sbin/chkconfig
--del
mysql
# For older SuSE Linux versions
elif
[
-x
/sbin/insserv
]
;
then
/sbin/insserv
-r
%
{
_sysconfdir
}
/init.d/mysql
fi
fi
fi
# We do not remove the mysql user since it may still own a lot of
# database files.
%triggerpostun
-n
MySQL-server%
{
product_suffix
}
--MySQL-server-community
%triggerpostun
-n
MySQL-server%
{
product_suffix
}
--MySQL-server-community
# Setup: We renamed this package, so any existing "server-community"
# Setup: We renamed this package, so any existing "server-community"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment