Accepting request 1176727 from home:cboltz

- fix bashism in %post profiles

OBS-URL: https://build.opensuse.org/request/show/1176727
OBS-URL: https://build.opensuse.org/package/show/security:apparmor/apparmor?expand=0&rev=405
This commit is contained in:
Christian Boltz 2024-05-24 12:22:43 +00:00 committed by Git OBS Bridge
parent 8f0fcf5e40
commit ae29aa0b55
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri May 24 12:21:18 UTC 2024 - Christian Boltz <suse-beta@cboltz.de>
- fix bashism in %post profiles
-------------------------------------------------------------------
Sun May 5 19:53:21 UTC 2024 - Christian Boltz <suse-beta@cboltz.de>

View File

@ -862,7 +862,7 @@ for oldlocal in \
usr.sbin.identd usr.sbin.mdnsd usr.sbin.nmbd usr.sbin.nscd usr.sbin.ntpd usr.sbin.smbd usr.sbin.smbd-shares usr.sbin.smbldap-useradd usr.sbin.traceroute \
usr.sbin.winbindd zgrep
do
if [ -f "/etc/apparmor.d/local/$oldlocal" ] && [ "$(cat /etc/apparmor.d/local/$oldlocal)" == "# Site-specific additions and overrides for '$oldlocal'" ] ; then
if [ -f "/etc/apparmor.d/local/$oldlocal" ] && [ "$(cat /etc/apparmor.d/local/$oldlocal)" = "# Site-specific additions and overrides for '$oldlocal'" ] ; then
rm "/etc/apparmor.d/local/$oldlocal" || :
fi
done