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

Fixes #15957: Execute a single directive on the agent #256

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions share/commands/directive-list
Expand Up @@ -12,12 +12,12 @@
. "${BASEDIR}/../lib/common.sh"

BASE_PATH="/var/rudder/cfengine-community/inputs"
SERVER_VERSION=$(rudder_json_value 'SERVER_VERSION')
SERVER_VERSION=$(rudder_json_value 'SERVER_VERSION' | cut -d. -f1,2)

major_compare "5.1" "${SERVER_VERSION}"
major_compare "${SERVER_VERSION}" "6.0"
if [ $? -eq 255 ]
then
echo "Your server doesn't support this feature, please upgrade to at least 5.1"
echo "Your server doesn't support this feature, please upgrade to at least 6.0"
exit 1
fi
if [ ! -f "${BASE_PATH}/rudder-directives.csv" ]
Expand Down
6 changes: 3 additions & 3 deletions share/commands/directive-run
Expand Up @@ -37,12 +37,12 @@
. "${BASEDIR}/../lib/common.sh"

BASE_PATH="/var/rudder/cfengine-community/inputs"
SERVER_VERSION=$(rudder_json_value 'SERVER_VERSION')
SERVER_VERSION=$(rudder_json_value 'SERVER_VERSION' | cut -d. -f1,2)

major_compare "5.1" "${SERVER_VERSION}"
major_compare "${SERVER_VERSION}" "6.0"
if [ $? -eq 255 ]
then
echo "Your server doesn't support this feature, please upgrade to at least 5.1"
echo "Your server doesn't support this feature, please upgrade to at least 6.0"
exit 1
fi
if [ ! -f "${BASE_PATH}/rudder-directives.csv" ]
Expand Down