1.1 --- a/tools/install.sh Tue Apr 19 21:09:34 2016 +0200
1.2 +++ b/tools/install.sh Tue Apr 19 21:22:33 2016 +0200
1.3 @@ -68,13 +68,17 @@
1.4 fi
1.5
1.6 if [ -e "$CONFIG_DIR/config.py" ]; then
1.7 - mv "$INSTALL_DIR/imiptools/config.py" "$CONFIG_DIR/config.py.new"
1.8 + if ! cmp "$INSTALL_DIR/imiptools/config.py" "$CONFIG_DIR/config.py" > /dev/null 2>&1 ; then
1.9 + mv "$INSTALL_DIR/imiptools/config.py" "$CONFIG_DIR/config.py.new"
1.10 + fi
1.11 else
1.12 mv "$INSTALL_DIR/imiptools/config.py" "$CONFIG_DIR/config.py"
1.13 fi
1.14
1.15 if [ -e "$CONFIG_DIR/config.sh" ]; then
1.16 - cp "tools/config.sh" "$CONFIG_DIR/config.sh.new"
1.17 + if ! cmp "tools/config.sh" "$CONFIG_DIR/config.sh" > /dev/null 2>&1 ; then
1.18 + cp "tools/config.sh" "$CONFIG_DIR/config.sh.new"
1.19 + fi
1.20 else
1.21 cp "tools/config.sh" "$CONFIG_DIR/config.sh"
1.22 fi
1.23 @@ -90,7 +94,9 @@
1.24 fi
1.25
1.26 if [ -e "$CONFIG_DIR/postgresql/schema.sql" ]; then
1.27 - cp "conf/postgresql/schema.sql" "$CONFIG_DIR/postgresql/schema.sql.new"
1.28 + if ! cmp "conf/postgresql/schema.sql" "$CONFIG_DIR/postgresql/schema.sql" > /dev/null 2>&1 ; then
1.29 + cp "conf/postgresql/schema.sql" "$CONFIG_DIR/postgresql/schema.sql.new"
1.30 + fi
1.31 else
1.32 cp "conf/postgresql/schema.sql" "$CONFIG_DIR/postgresql/schema.sql"
1.33 fi