Skip to content

Commit

Permalink
Merge pull request Normation#802 from jooooooon/bug_7447/fix_path_in_…
Browse files Browse the repository at this point in the history
…rudder_upgrade_to_var_rudder

Fixes #7447: Fix path in rudder-upgrade to /var/rudder
  • Loading branch information
VinceMacBuche committed Nov 23, 2015
2 parents bdb8ad6 + 9948549 commit 2c0d28d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rudder-webapp/SOURCES/rudder-upgrade
Original file line number Diff line number Diff line change
Expand Up @@ -330,15 +330,15 @@ upgrade_ncf() {
# Make sure that ncf uses the right logger bundles (_logger_default and logger_rudder)
STEP="Make sure that ncf uses the right logger bundles (_logger_default and logger_rudder)"

if ! grep -Eq "^loggers=.*logger_rudder.*" ${VAR_RUDDER}/ncf/common/ncf.conf; then
sed -i "s%^loggers=\(.*\)%loggers=\1,logger_rudder%" ${VAR_RUDDER}/ncf/common/ncf.conf
if ! grep -Eq "^loggers=.*logger_rudder.*" ${RUDDER_VAR}/ncf/common/ncf.conf; then
sed -i "s%^loggers=\(.*\)%loggers=\1,logger_rudder%" ${RUDDER_VAR}/ncf/common/ncf.conf
fi

# Make sure that ncf uses the right CFEngine port (5309)
STEP="Make sure that ncf uses the right CFEngine port (5309)"

if ! grep -Eq "^cfengine_port=5309" ${VAR_RUDDER}/ncf/common/ncf.conf; then
sed -i "s%^cfengine_port=.*%cfengine_port=5309%" ${VAR_RUDDER}/ncf/common/ncf.conf
if ! grep -Eq "^cfengine_port=5309" ${RUDDER_VAR}/ncf/common/ncf.conf; then
sed -i "s%^cfengine_port=.*%cfengine_port=5309%" ${RUDDER_VAR}/ncf/common/ncf.conf
fi
}

Expand Down

0 comments on commit 2c0d28d

Please sign in to comment.