diff --git a/extras/pandora_update_version.sh b/extras/pandora_update_version.sh index d0f0d86907..481b87304f 100755 --- a/extras/pandora_update_version.sh +++ b/extras/pandora_update_version.sh @@ -48,6 +48,7 @@ AGENT_UNIX_FILE="$CODEHOME/pandora_agents/unix/pandora_agent" AGENT_WIN_FILE="$CODEHOME/pandora_agents/win32/pandora.cc" AGENT_WIN_MPI_FILE="$CODEHOME/pandora_agents/win32/installer/pandora.mpi" AGENT_WIN_RC_FILE="$CODEHOME/pandora_agents/win32/versioninfo.rc" +SATELLITE_FILE="$PANDHOME_ENT/satellite_server/satellite_server.pl" # Update version in spec files function update_spec_version { @@ -96,6 +97,11 @@ 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 Satellite Server +echo "Updating Pandora Satellite Server version..." +sed -e "s/\s*use constant SATELLITE_VERSION.*/use constant SATELLITE_VERSION \=\> \"$VERSION\"/" "$SATELLITE_FILE" > "$TEMP_FILE" && mv "$TEMP_FILE" "$SATELLITE_FILE" +sed -e "s/\s*use constant SATELLITE_BUILD.*/use constant SATELLITE_BUILD \=\> \"$BUILD\"/" "$SATELLITE_FILE" > "$TEMP_FILE" && mv "$TEMP_FILE" "$SATELLITE_FILE" + # Pandora Console echo "Updating Pandora Console DB version..." sed -e "s/\s*[(]\s*'db_scheme_version'\s*\,.*/('db_scheme_version'\,'$VERSION'),/" "$CONSOLE_DB_FILE" > "$TEMP_FILE" && mv "$TEMP_FILE" "$CONSOLE_DB_FILE"