diff --git a/src/cron/functions/check-services/git.ts b/src/cron/functions/check-services/git.ts index 4ee4bb3..33807eb 100644 --- a/src/cron/functions/check-services/git.ts +++ b/src/cron/functions/check-services/git.ts @@ -37,12 +37,15 @@ export default async function cronCheckServicesGit( const service_git = git_array[i]; if (!service_git) continue; + if (!service_git.keep_updated) continue; const git_url = service_git.repo_url; const repo_name = grabGitRepoName({ git_url }); if (!repo_name) continue; + console.log(`Checking Service ${service.service_name} git ...`); + const relay_dst = path.join( relayServerRsyncDir, service.service_name, @@ -64,6 +67,8 @@ export default async function cronCheckServicesGit( continue; } + console.log(`Updating ${service.service_name} git ...`); + let cmd = ``; const src = relay_dst + "/";