2012-06-11 Ramon Novoa <rnovoa@artica.es>

* pandora_update_version.sh: Update version string in server
	  configuration file.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6482 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
ramonn 2012-06-11 14:01:16 +00:00
parent 81981fe709
commit efaf54c47c
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2012-06-11 Ramon Novoa <rnovoa@artica.es>
* pandora_update_version.sh: Update version string in server
configuration file.
012-05-05 Sancho Lerena <slerena@artica.es> 012-05-05 Sancho Lerena <slerena@artica.es>
* anytermd: Added anyterm to extras. Included modifications on original * anytermd: Added anyterm to extras. Included modifications on original

View File

@ -39,6 +39,7 @@ $PANDHOME_ENT/pandora_server/PandoraFMS-Enterprise/DEBIAN"
SERVER_FILE="$CODEHOME/pandora_server/lib/PandoraFMS/Config.pm" SERVER_FILE="$CODEHOME/pandora_server/lib/PandoraFMS/Config.pm"
SERVER_DB_FILE="$CODEHOME/pandora_server/util/pandora_db.pl" SERVER_DB_FILE="$CODEHOME/pandora_server/util/pandora_db.pl"
SERVER_CLI_FILE="$CODEHOME/pandora_server/util/pandora_manage.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_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"
@ -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" 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..." 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/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 # Pandora Console
echo "Updating Pandora Console DB version..." echo "Updating Pandora Console DB version..."