diff --git a/postinstall_partage.sh b/postinstall_partage.sh
index e3d8f7094d91980d6b293ab18914ecadc33ad0bf..58da62bf0d8e960707eb58a11c56daeb796e38b3 100755
--- a/postinstall_partage.sh
+++ b/postinstall_partage.sh
@@ -48,7 +48,7 @@ line="0 1 1 * * $DIR/registry/scripts/clean.sh > /dev/null 2>&1"
 (crontab -l; echo "${line}") | crontab -
 
 # Copy ssh key to tftp
-while [ ! -e "~/.ssh/id_rsa.pub" ]
+while [ ! -e "/root/.ssh/id_rsa.pub" ]
 do
     sleep 10
 done