2011-12-14 Ramon Novoa <rnovoa@artica.es>

* pandora_update_version.sh: Update CLI and DB maintenance scripts
	  version strings.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5260 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
Ramon Novoa 2011-12-14 14:12:27 +00:00
parent 324aa65402
commit 6aaad1deb7
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2011-12-14 Ramon Novoa <rnovoa@artica.es>
* pandora_update_version.sh: Update CLI and DB maintenance scripts
version strings.
2011-10-27 Ramon Novoa <rnovoa@artica.es>
* pandora_update_version.sh: Fixed a typo.

View File

@ -33,6 +33,8 @@ $CODE_HOME/pandora_agents/unix/DEBIAN \
$CODE_HOME_ENT/pandora/trunk/pandora_console/DEBIAN \
$CODE_HOME_ENT/pandora/trunk/pandora_server/PandoraFMS-Enterprise/DEBIAN"
SERVER_FILE="$CODE_HOME/pandora_server/lib/PandoraFMS/Config.pm"
SERVER_DB_FILE="$CODE_HOME/pandora_server/util/pandora_db.pl"
SERVER_CLI_FILE="$CODE_HOME/pandora_server/util/pandora_manage.pl"
CONSOLE_DB_FILE="$CODE_HOME/pandora_console/pandoradb_data.sql"
CONSOLE_FILE="$CODE_HOME/pandora_console/include/config_process.php"
CONSOLE_INSTALL_FILE="$CODE_HOME/pandora_console/install.php"
@ -81,6 +83,10 @@ done
echo "Updating Pandora Server version..."
sed -e "s/my\s\s*\$pandora_version\s*=.*/my \$pandora_version = \"$VERSION\";/" "$SERVER_FILE" > "$TEMP_FILE" && mv "$TEMP_FILE" "$SERVER_FILE"
sed -e "s/my\s\s*\$pandora_build\s*=.*/my \$pandora_build = \"$BUILD\";/" "$SERVER_FILE" > "$TEMP_FILE" && mv "$TEMP_FILE" "$SERVER_FILE"
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"
# Pandora Console
echo "Updating Pandora Console DB version..."