Updates
This commit is contained in:
parent
a7bef6de2a
commit
be78ce3bc3
@ -37,12 +37,15 @@ export default async function cronCheckServicesGit(
|
|||||||
const service_git = git_array[i];
|
const service_git = git_array[i];
|
||||||
|
|
||||||
if (!service_git) continue;
|
if (!service_git) continue;
|
||||||
|
if (!service_git.keep_updated) continue;
|
||||||
|
|
||||||
const git_url = service_git.repo_url;
|
const git_url = service_git.repo_url;
|
||||||
const repo_name = grabGitRepoName({ git_url });
|
const repo_name = grabGitRepoName({ git_url });
|
||||||
|
|
||||||
if (!repo_name) continue;
|
if (!repo_name) continue;
|
||||||
|
|
||||||
|
console.log(`Checking Service ${service.service_name} git ...`);
|
||||||
|
|
||||||
const relay_dst = path.join(
|
const relay_dst = path.join(
|
||||||
relayServerRsyncDir,
|
relayServerRsyncDir,
|
||||||
service.service_name,
|
service.service_name,
|
||||||
@ -64,6 +67,8 @@ export default async function cronCheckServicesGit(
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log(`Updating ${service.service_name} git ...`);
|
||||||
|
|
||||||
let cmd = ``;
|
let cmd = ``;
|
||||||
|
|
||||||
const src = relay_dst + "/";
|
const src = relay_dst + "/";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user