1.1 --- a/tools/install.sh Wed Oct 21 00:27:36 2015 +0200
1.2 +++ b/tools/install.sh Wed Oct 21 14:59:43 2015 +0200
1.3 @@ -16,9 +16,9 @@
1.4
1.5 if [ ! -e "$INSTALL_DIR/imiptools" ]; then
1.6 mkdir "$INSTALL_DIR/imiptools"
1.7 - if [ ! -e "$INSTALL_DIR/imiptools" ]; then
1.8 - mkdir "$INSTALL_DIR/imiptools/handlers"
1.9 - fi
1.10 +fi
1.11 +if [ ! -e "$INSTALL_DIR/imiptools/handlers" ]; then
1.12 + mkdir "$INSTALL_DIR/imiptools/handlers"
1.13 fi
1.14
1.15 # Remove any symbolic link to the config module.
1.16 @@ -44,11 +44,21 @@
1.17 fi
1.18 fi
1.19
1.20 +if [ -e "$CONFIG_DIR/config.sh" ]; then
1.21 + if [ ! -e "$CONFIG_DIR/config.sh.backup" ]; then
1.22 + mv "$CONFIG_DIR/config.sh" "$CONFIG_DIR/config.sh.backup"
1.23 + fi
1.24 +fi
1.25 +
1.26 # Replace the config module with a symbolic link.
1.27
1.28 mv "$INSTALL_DIR/imiptools/config.py" "$CONFIG_DIR/"
1.29 ln -s "$CONFIG_DIR/config.py" "$INSTALL_DIR/imiptools/config.py"
1.30
1.31 +# Copy the config script.
1.32 +
1.33 +cp tools/config.sh "$CONFIG_DIR/"
1.34 +
1.35 # Tools
1.36
1.37 TOOLS="fix.sh init.sh init_user.sh make_freebusy.py"