diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x[-rw-r--r--] | scripts/live-bottom/42disable_cups_apparmor | 37 |
1 files changed, 23 insertions, 14 deletions
diff --git a/scripts/live-bottom/42disable_cups_apparmor b/scripts/live-bottom/42disable_cups_apparmor index 4a53444..588214e 100644..100755 --- a/scripts/live-bottom/42disable_cups_apparmor +++ b/scripts/live-bottom/42disable_cups_apparmor @@ -1,29 +1,38 @@ #!/bin/sh -# workaround for AppArmor bug #131976 -PREREQ="" -DESCRIPTION="Disabling AppArmor profile for Cups..." +#set -e -. /scripts/casper-functions +# initramfs-tools header + +PREREQ="" prereqs() { - echo "$PREREQ" + echo "${PREREQ}" } -case $1 in -# get pre-requisites -prereqs) - prereqs - exit 0 - ;; +case "${1}" in + prereqs) + prereqs + exit 0 + ;; esac -log_begin_msg "$DESCRIPTION" +# live-initramfs header + +. /scripts/live-functions + +log_begin_msg "Disabling AppArmor profile for Cups..." + +# live-initramfs script + +# workaround for AppArmor bug #131976 PROFILE=/root/etc/apparmor.d/usr.sbin.cupsd -if [ -e "$PROFILE" ]; then - sed -i '/{/ s/{/flags=(complain) {/' $PROFILE + +if [ -e "$PROFILE" ] +then + sed -i '/{/ s/{/flags=(complain) {/' $PROFILE fi log_end_msg |
