2012-06-20 Ramon Novoa <rnovoa@artica.es>
* pandora_update_version.sh: Update version in agent configuration files. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6622 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
367ad38f93
commit
652523829f
|
@ -1,3 +1,8 @@
|
||||||
|
2012-06-20 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
|
* pandora_update_version.sh: Update version in agent configuration
|
||||||
|
files.
|
||||||
|
|
||||||
2012-06-11 Ramon Novoa <rnovoa@artica.es>
|
2012-06-11 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
* pandora_update_version.sh: Update version string in server
|
* pandora_update_version.sh: Update version string in server
|
||||||
|
|
|
@ -43,6 +43,7 @@ SERVER_CONF_FILE="$CODEHOME/pandora_server/conf/pandora_server.conf"
|
||||||
CONSOLE_DB_FILE="$CODEHOME/pandora_console/pandoradb_data.sql"
|
CONSOLE_DB_FILE="$CODEHOME/pandora_console/pandoradb_data.sql"
|
||||||
CONSOLE_FILE="$CODEHOME/pandora_console/include/config_process.php"
|
CONSOLE_FILE="$CODEHOME/pandora_console/include/config_process.php"
|
||||||
CONSOLE_INSTALL_FILE="$CODEHOME/pandora_console/install.php"
|
CONSOLE_INSTALL_FILE="$CODEHOME/pandora_console/install.php"
|
||||||
|
AGENT_BASE_DIR="$CODEHOME/pandora_agents/"
|
||||||
AGENT_UNIX_FILE="$CODEHOME/pandora_agents/unix/pandora_agent"
|
AGENT_UNIX_FILE="$CODEHOME/pandora_agents/unix/pandora_agent"
|
||||||
AGENT_WIN_FILE="$CODEHOME/pandora_agents/win32/pandora.cc"
|
AGENT_WIN_FILE="$CODEHOME/pandora_agents/win32/pandora.cc"
|
||||||
AGENT_WIN_MPI_FILE="$CODEHOME/pandora_agents/win32/installer/pandora.mpi"
|
AGENT_WIN_MPI_FILE="$CODEHOME/pandora_agents/win32/installer/pandora.mpi"
|
||||||
|
@ -124,6 +125,10 @@ else
|
||||||
sed -n "1h;1!H;\${;g;s/[\r\n]Windows\,Executable[\r\n]{[^\n\r]*}/\nWindows\,Executable\n{\<\%AppName\%\>\-Setup\<\%Ext\%\>}/g;p;}" "$AGENT_WIN_MPI_FILE" > "$TEMP_FILE" && mv "$TEMP_FILE" "$AGENT_WIN_MPI_FILE"
|
sed -n "1h;1!H;\${;g;s/[\r\n]Windows\,Executable[\r\n]{[^\n\r]*}/\nWindows\,Executable\n{\<\%AppName\%\>\-Setup\<\%Ext\%\>}/g;p;}" "$AGENT_WIN_MPI_FILE" > "$TEMP_FILE" && mv "$TEMP_FILE" "$AGENT_WIN_MPI_FILE"
|
||||||
fi
|
fi
|
||||||
sed -e "s/\s*VALUE \"ProductVersion\".*/ VALUE \"ProductVersion\", \"($VERSION(Build $BUILD))\"/" "$AGENT_WIN_RC_FILE" > "$TEMP_FILE" && mv "$TEMP_FILE" "$AGENT_WIN_RC_FILE"
|
sed -e "s/\s*VALUE \"ProductVersion\".*/ VALUE \"ProductVersion\", \"($VERSION(Build $BUILD))\"/" "$AGENT_WIN_RC_FILE" > "$TEMP_FILE" && mv "$TEMP_FILE" "$AGENT_WIN_RC_FILE"
|
||||||
|
echo "Updating Agent configuration files..."
|
||||||
|
for conf in `find $AGENT_BASE_DIR -name pandora_agent.conf`; do
|
||||||
|
sed -e "s/#\s*[Vv]ersion\s*[^\,]*/# Version $VERSION/" "$conf" > "$TEMP_FILE" && mv "$TEMP_FILE" "$conf"
|
||||||
|
done
|
||||||
|
|
||||||
rm -f "$TEMP_FILE"
|
rm -f "$TEMP_FILE"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue