Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

service sub-module errors due to unnecessary quotes #50

Closed
cedwards opened this issue Nov 12, 2019 · 0 comments · Fixed by #62
Closed

service sub-module errors due to unnecessary quotes #50

cedwards opened this issue Nov 12, 2019 · 0 comments · Fixed by #62
Assignees
Labels
bug

Comments

@cedwards
Copy link
Contributor

@cedwards cedwards commented Nov 12, 2019

The template sub-command errors trying to execute service hooks due to unnecessary quotes in the script. This is easily fixed and will be patched in the next release.

Issue looks like:

--- template.sh	2019-11-12 23:11:09.473457000 +0000
+++ template.sh 2019-11-12 23:11:01.577429000 +0000
@@ -162,7 +162,7 @@
     if [ -s "${bastille_template_SERVICE}" ]; then
         echo -e "${COLOR_GREEN}Managing services.${COLOR_RESET}"
         while read _service; do
-            jexec -l ${_jail} /usr/sbin/service "${_service}"
+            jexec -l ${_jail} /usr/sbin/service ${_service}
         done < "${bastille_template_SERVICE}"
     fi
@cedwards cedwards self-assigned this Nov 13, 2019
@cedwards cedwards added the bug label Nov 13, 2019
@cedwards cedwards closed this in #62 Nov 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.