[Bugs] [Bug 1535079] New: syntax error in S10selinux-label-brick.sh

bugzilla at redhat.com bugzilla at redhat.com
Tue Jan 16 15:48:59 UTC 2018


https://bugzilla.redhat.com/show_bug.cgi?id=1535079

            Bug ID: 1535079
           Summary: syntax error in S10selinux-label-brick.sh
           Product: GlusterFS
           Version: mainline
         Component: scripts
          Assignee: bugs at gluster.org
          Reporter: mscherer at redhat.com
                CC: bugs at gluster.org



Description of problem:
$ LC_ALL=C bash -n ./extras/hook-scripts/create/post/S10selinux-label-brick.sh
./extras/hook-scripts/create/post/S10selinux-label-brick.sh: line 46: syntax
error near unexpected token `('
./extras/hook-scripts/create/post/S10selinux-label-brick.sh: line 46: `        
       semanage fcontext --add -t glusterd_brick_t -r s0 $b(/.*)?'


This prevent gluster volume from starting on latest Fedora, unless SElinux is
disabled (since then, the code is not run).


Version-Release number of selected component (if applicable):
git head (7ba7a4b2)


How reproducible:
each time

Steps to Reproduce:
1. git checkout
2. run the command
3.

Actual results:

syntax error near unexpected token

Expected results:

nothing, cause the syntax would be ok.

Additional info:

I have a patch ready. I would also like to know where/how we can lint shell
script to prevent that from happening in the future.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list