Skip to content

Commit afde409

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Disable apparmor for openSUSE distros"
2 parents e1276ba + eb7d1ad commit afde409

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

tools/fixup_stuff.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,19 @@ function fixup_fedora {
205205
fi
206206
}
207207

208+
function fixup_suse {
209+
if ! is_suse; then
210+
return
211+
fi
212+
213+
# Disable apparmor profiles in openSUSE distros
214+
# to avoid issues with haproxy and dnsmasq
215+
if [ -x /usr/sbin/aa-enabled ] && sudo /usr/sbin/aa-enabled -q; then
216+
sudo systemctl disable apparmor
217+
sudo /usr/sbin/aa-teardown
218+
fi
219+
}
220+
208221
# The version of pip(1.5.4) supported by python-virtualenv(1.11.4) has
209222
# connection issues under proxy so re-install the latest version using
210223
# pip. To avoid having pip's virtualenv overwritten by the distro's
@@ -239,5 +252,6 @@ function fixup_all {
239252
fixup_uca
240253
fixup_python_packages
241254
fixup_fedora
255+
fixup_suse
242256
fixup_virtualenv
243257
}

0 commit comments

Comments
 (0)