Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
preflight.sh: Write SELinux policy if needed
* preflight.sh: write selinux policy if needed SSH Push in the "tunnel" flavor can conflict with SELinux policies shipped by operating systems. The default policies are not aware of the additional port we need for the tunnel. The preflight.sh script is executed at the beginning of bootstrapping to download the Salt Bundle and allow Salt code execution. To allow for this download, a custom policy is written when SELinux is enabled and the system is managed via a tunnel. The policy is only written and loaded once. Fixes bsc#1217594 (cherry picked from commit bc2d962) * preflight.sh: Fix shell syntax (uyuni-project#8165) In Bash, the string to the right of the =~ operator is interpreted as a POSIX extended regular expression. A quoted expression is matched literally, therefore we can't quote the string on the right side. Other than that, there were a few slips (redirection, missing "fi", missing "+" in regex) (cherry picked from commit 3eaae2b)
- Loading branch information