Module: nagvis Branch: nagvis-1.4 Commit: a7e1d672a1d8e3bd83fe1bf2f7ffaf58968e57aa URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=a7e1d672a1d8e3bd83fe1bf2f7ffaf58968e57aa
Author: LaMi <[email protected]> Date: Wed Jan 27 20:17:35 2010 +0100 Installer also moves automap configuration files when updating 1.5x or above --- nagvis/install.sh | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/nagvis/install.sh b/nagvis/install.sh index 4767838..d36e3fb 100755 --- a/nagvis/install.sh +++ b/nagvis/install.sh @@ -30,7 +30,7 @@ ############################################################################### # Installer version -INSTALLER_VERSION="0.2.9" +INSTALLER_VERSION="0.2.11" # Default action INSTALLER_ACTION="install" # Be quiet? (Enable/Disable confirmations) @@ -1120,6 +1120,9 @@ if [ "$INSTALLER_ACTION" = "update" -a "$NAGVIS_VER_OLD" != "UNKNOWN" ]; then LINE="Restoring custom map configuration files..." copy "\/(demo\.cfg|demo2\.cfg|demo-server\.cfg|demo-map\.cfg)$" "etc/maps" "map configuration files" + LINE="Restoring custom automap configuration files..." + copy "\/(__automap\.cfg)$" "etc/automaps" "automap configuration files" + LINE="Restoring custom map images..." copy "\/nagvis-demo\.png$" "$USERFILES_DIR/images/maps" "map image files" @@ -1188,6 +1191,9 @@ if [ $NAGVIS_TAG -lt 01050000 ]; then set_perm 775 "$NAGVIS_PATH/nagvis/var" set_perm 664 "$NAGVIS_PATH/nagvis/var/*" else + # NagVis 1.5x has an own automaps dir + set_perm 775 "$NAGVIS_PATH/etc/automaps" + set_perm 664 "$NAGVIS_PATH/etc/automaps/*" set_perm 775 "$NAGVIS_PATH/share/userfiles/images/maps" set_perm 664 "$NAGVIS_PATH/share/userfiles/images/maps/*" set_perm 775 "$NAGVIS_PATH/var" ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
