diff --git a/extras/ChangeLog b/extras/ChangeLog index a3f95284d1..787b7d2a59 100644 --- a/extras/ChangeLog +++ b/extras/ChangeLog @@ -1,3 +1,8 @@ +2012-06-11 Ramon Novoa + + * pandora_update_version.sh: Update version string in server + configuration file. + 012-05-05 Sancho Lerena * anytermd: Added anyterm to extras. Included modifications on original diff --git a/extras/pandora_update_version.sh b/extras/pandora_update_version.sh index 23be6cb955..04cfbd4e57 100755 --- a/extras/pandora_update_version.sh +++ b/extras/pandora_update_version.sh @@ -39,6 +39,7 @@ $PANDHOME_ENT/pandora_server/PandoraFMS-Enterprise/DEBIAN" SERVER_FILE="$CODEHOME/pandora_server/lib/PandoraFMS/Config.pm" SERVER_DB_FILE="$CODEHOME/pandora_server/util/pandora_db.pl" SERVER_CLI_FILE="$CODEHOME/pandora_server/util/pandora_manage.pl" +SERVER_CONF_FILE="$CODEHOME/pandora_server/conf/pandora_server.conf" CONSOLE_DB_FILE="$CODEHOME/pandora_console/pandoradb_data.sql" CONSOLE_FILE="$CODEHOME/pandora_console/include/config_process.php" CONSOLE_INSTALL_FILE="$CODEHOME/pandora_console/install.php" @@ -92,6 +93,7 @@ echo "Updating DB maintenance script version..." sed -e "s/my\s\s*\$version\s*=.*/my \$version = \"$VERSION PS$BUILD\";/" "$SERVER_DB_FILE" > "$TEMP_FILE" && mv "$TEMP_FILE" "$SERVER_DB_FILE" echo "Updating CLI script version..." sed -e "s/my\s\s*\$version\s*=.*/my \$version = \"$VERSION PS$BUILD\";/" "$SERVER_CLI_FILE" > "$TEMP_FILE" && mv "$TEMP_FILE" "$SERVER_CLI_FILE" +sed -e "s/\s*\#\s*\Version.*/\# Version $VERSION/" "$SERVER_CONF_FILE" > "$TEMP_FILE" && mv "$TEMP_FILE" "$SERVER_CONF_FILE" # Pandora Console echo "Updating Pandora Console DB version..."