diff --git a/installation/resource/installer/bin/upgrade.sh b/installation/resource/installer/bin/upgrade.sh
index a706004fa0011467cb6ac90bbc6be5cb00fe3c04..a77d179af4623d07b2d858019b3cee71a63edbd8 100755
--- a/installation/resource/installer/bin/upgrade.sh
+++ b/installation/resource/installer/bin/upgrade.sh
@@ -24,7 +24,7 @@ popd > /dev/null
 # set INSTALL_PATH in the console.properties
 sed_params='s#^INSTALL_PATH=.*$#INSTALL_PATH='$OPENBIS_INSTALL_DIR'#'
 sed "$sed_params" $INSTALLER_DIR/console.properties > $INSTALLER_DIR/console.properties.modified
-mv $INSTALLER_DIR/console.properties.modified > $INSTALLER_DIR/console.properties 
+mv $INSTALLER_DIR/console.properties.modified $INSTALLER_DIR/console.properties 
 
 # run the installation
 $INSTALLER_DIR/run-console.sh
diff --git a/screening/dist/admin/upgrade.sh b/screening/dist/admin/upgrade.sh
index b091675d43ef178dd614128a4a79b753a545bdb2..8cdae51ef4464919833c3f0fe187ecc42124d6b6 100755
--- a/screening/dist/admin/upgrade.sh
+++ b/screening/dist/admin/upgrade.sh
@@ -63,7 +63,7 @@ popd > /dev/null
 # set INSTALL_PATH in the console.properties
 sed_params='s#^INSTALL_PATH=.*$#INSTALL_PATH='$OPENBIS_INSTALL_DIR'#'
 sed "$sed_params" $INSTALLER_DIR/console.properties > $INSTALLER_DIR/console.properties.modified
-mv $INSTALLER_DIR/console.properties.modified > $INSTALLER_DIR/console.properties 
+mv $INSTALLER_DIR/console.properties.modified $INSTALLER_DIR/console.properties 
 
 # run the installation
 $INSTALLER_DIR/run-console.sh