[Debian-ha-commits] [resource-agents] 06/11: debian/tests: disable apparmor for mysql
Valentin Vidic
vvidic-guest at moszumanska.debian.org
Sun Nov 26 13:19:35 UTC 2017
This is an automated email from the git hooks/post-receive script.
vvidic-guest pushed a commit to branch master
in repository resource-agents.
commit fac6da3358e656a8c8d57a7bf44593b642e1eecc
Author: Valentin Vidic <Valentin.Vidic at CARNet.hr>
Date: Sun Nov 26 00:57:29 2017 +0100
debian/tests: disable apparmor for mysql
Apparmor profile for mysql block the agent
from starting mysql.
---
debian/tests/run-ocft | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/debian/tests/run-ocft b/debian/tests/run-ocft
index a1f433a..7334ea6 100755
--- a/debian/tests/run-ocft
+++ b/debian/tests/run-ocft
@@ -12,5 +12,9 @@ trap "cleanup" 0 2 3 15
mkdir -p /run/resource-agents
+if [ "$AGENT" = "mysql" ]; then
+ apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld 2>/dev/null || true
+fi
+
ocft make $AGENT
ocft test $AGENT
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-ha/resource-agents.git
More information about the Debian-HA-Commits
mailing list