diff --git a/ci-templates/lfs-pull.yml b/ci-templates/lfs-pull.yml
index 245ba0759ee2862ca873eba8c20463bc8e9c7237..ca15f2f2ef9554695e4d5abe0c61467096512ca6 100644
--- a/ci-templates/lfs-pull.yml
+++ b/ci-templates/lfs-pull.yml
@@ -4,10 +4,9 @@
 
 .industrial_ci:
   variables:
-    BEFORE_INIT: "apt-get update &> /dev/null && apt-get install -q -y curl; \
-                bash <(curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh);\
+    AFTER_INIT: "bash <(curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh);\
                 apt install -qq -y git-lfs; \
                 git config --global credential.helper store; \
                 echo https://$ARTIFACT_CI_USER:$ARTIFACT_CI_TOKEN@artifact.tecnalia.com > ~/.git-credentials ;"
-    BEFORE_BUILD_TARGET_WORKSPACE: *lfs-pull-script
-    BEFORE_BUILD_UPSTREAM_WORKSPACE: *lfs-pull-script
+    BEFORE_INSTALL_TARGET_WORKSPACE: *lfs-pull-script
+    BEFORE_INSTALL_UPSTREAM_WORKSPACE: *lfs-pull-script