diff --git a/docs/upgrading/0.17.rst b/docs/upgrading/0.17.rst
index 1414b563ed9b90d3f2c2a761d5c9f84eba84c0f5..ccd3f1c3f6b4edc7fc781815ab41194a4747accf 100644
--- a/docs/upgrading/0.17.rst
+++ b/docs/upgrading/0.17.rst
@@ -196,8 +196,8 @@ On docker-setups::
 On non docker-setups::
 
     # if you missed this one from a previous upgrade
-    python api/manage.py script create_actors --no-input
-    python api/manage.py script migrate_to_user_libraries --no-input
+    sudo -u funkwhale -E /srv/funkwhale/virtualenv/bin/python api/manage.py script create_actors --no-input
+    sudo -u funkwhale -E /srv/funkwhale/virtualenv/bin/python api/manage.py script migrate_to_user_libraries --no-input
 
 If the scripts ends without errors, you're instance should be updated and ready to use :)