Skip to content

Commit 6a3f538

Browse files
bkandasabjornmu
authored andcommitted
Follow-up fix for Bug#22559624 KEYRING_FILE INITIALIZATION FAILURE WHEN SELINUX ENABLED FROM DISABLED STATE
(cherry picked from commit 4fbd07124168ef24eba5b55a0e3d90a5478aa1fe)
1 parent aab89ab commit 6a3f538

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/systemd/mysqld_pre_systemd.in

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ install_db () {
5959
/usr/sbin/restorecon $log
6060
for dir in /var/lib/mysql-files /var/lib/mysql-keyring ; do
6161
if [ -x /usr/sbin/semanage -a -d /var/lib/mysql -a -d $dir ] ; then
62-
/usr/sbin/semanage fcontext -a -e /var/lib/mysql $dir >/dev/null 2>&1
63-
/sbin/restorecon $dir
62+
/usr/sbin/semanage fcontext -a -e /var/lib/mysql $dir >/dev/null 2>&1
63+
/sbin/restorecon $dir
64+
fi
6465
done
6566
fi
6667

0 commit comments

Comments
 (0)