ajmeireles

Member
Nov 20, 2019
8
0
1
Brazil
cPanel Access Level
Root Administrator
Hi!

I have a folder that is in: /home2/user/folder, and it is a private github repository. How can I make cPanel do a git pull every 5 minutes? I tried to create a pull.sh file and in it by something like:

#!/bin/bash
git pull
Running as user's cronjob
sh /home2/user/folder/pull.sh
But it didn't work.

Have some way to do it? I only want to do the git pull (get changes from github private repository), not push.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,493
1,008
313
cPanel Access Level
Root Administrator
Hey there! While our support is a bit limited for these tools, we do have some documentation here that should be exactly what you need:


Can you review that and see if that helps?