diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3e8a6bd3ef15b4c532265d0337efbf6e52c4d42a..3462226808435b2861b231695ad852f3272c8c0c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -23,9 +23,9 @@ deploy-job:      # This job runs in the deploy stage.
     - echo "Application successfully deployed."
     - whoami
     - sudo rm -rf /var/www/photogram
-    - cp -r /home/gitlab-runner/builds/zqWS2XpW/0/sibidharan/php-class-project /var/www/
-    - mv /var/www/php-class-project /var/www/photogram
-    - rm -rf /var/www/photogram/.git
+    - sudo cp -r /home/gitlab-runner/builds/zqWS2XpW/0/sibidharan/php-class-project /var/www/
+    - sudo mv /var/www/php-class-project /var/www/photogram
+    - sudo rm -rf /var/www/photogram/.git
   tags:
     - prod
   only: