log file path

This commit is contained in:
Frostebite 2023-05-13 21:21:57 +01:00
parent ae9fef39a3
commit ade6d7838f
4 changed files with 1 additions and 2 deletions

BIN
dist/index.js generated vendored

Binary file not shown.

BIN
dist/index.js.map generated vendored

Binary file not shown.

View File

@ -2,7 +2,6 @@ import path from 'node:path';
import { CloudRunnerFolders } from '../options/cloud-runner-folders';
import CloudRunnerLogger from '../services/core/cloud-runner-logger';
import fs from 'node:fs';
import { CloudRunnerSystem } from '../services/core/cloud-runner-system';
export class RemoteClientLogger {
private static get LogFilePath() {
@ -12,7 +11,6 @@ export class RemoteClientLogger {
public static log(message: string) {
const finalMessage = `[Client] ${message}`;
if (!fs.existsSync(CloudRunnerFolders.uniqueCloudRunnerJobFolderAbsolute)) {
CloudRunnerSystem.Run(`chmod -R a+rX /data/*`);
fs.mkdirSync(CloudRunnerFolders.uniqueCloudRunnerJobFolderAbsolute);
}
if (!fs.existsSync(this.LogFilePath)) {

View File

@ -92,6 +92,7 @@ export class BuildAutomationWorkflow implements WorkflowInterface {
return `export GIT_DISCOVERY_ACROSS_FILESYSTEM=1
${cloneBuilderCommands}
chmod -R a+rX /data/*
node ${builderPath} -m remote-cli-pre-build`;
}