diff --git a/server/scripts/update_from_dev.sh b/server/scripts/update_from_dev.sh
index 148899cb78d64cdcf8d675327979ad3f7348830d..98adb170834110ba8d3e07fa8343c4db22c97967 100644
--- a/server/scripts/update_from_dev.sh
+++ b/server/scripts/update_from_dev.sh
@@ -1,8 +1,9 @@
 #!/bin/bash
 
 cd /tmp
-rm -rf ispconfig3-master*
+rm -f ispconfig3-dev.tar.gz
 wget -O ispconfig3-dev.tar.gz "http://git.ispconfig.org/ispconfig/ispconfig3/repository/archive.tar.gz?ref=master"
+rm -rf ispconfig3-master*
 tar xzf ispconfig3-dev.tar.gz
 cd ispconfig3-master*/install
 php -q \