Skip to content
Snippets Groups Projects
Commit 9b8977df authored by Jérôme POIRIER's avatar Jérôme POIRIER
Browse files

Merge branch 'release'

parents b9f55354 c41ea763
No related branches found
No related tags found
No related merge requests found
Pipeline #67662 passed
...@@ -24,9 +24,9 @@ RUN npm install \ ...@@ -24,9 +24,9 @@ RUN npm install \
ARG DEPENDENCY_PROXY= ARG DEPENDENCY_PROXY=
FROM ${DEPENDENCY_PROXY}node:16.11.1-alpine FROM ${DEPENDENCY_PROXY}node:16.11.1-alpine
# Log4j folder have to be writable to openshift user # Sets timezone
# RUN mkdir -p /home/node/log RUN apk add --no-cache tzdata
# RUN chgrp -R 0 /home/node/log && chmod -R g=u /home/node/log ENV TZ=Europe/Paris
USER node USER node
......
...@@ -23,6 +23,7 @@ export class FileService { ...@@ -23,6 +23,7 @@ export class FileService {
return readFile(documentFilePath); return readFile(documentFilePath);
} }
this.logger.debug(`No such file or directory '${filepath}'`);
throw new NotFoundException(`No such file or directory '${filepath}'`); throw new NotFoundException(`No such file or directory '${filepath}'`);
} }
...@@ -58,12 +59,13 @@ export class FileService { ...@@ -58,12 +59,13 @@ export class FileService {
public remove(path: string): void { public remove(path: string): void {
const fullpath: string = join(this.configService.documentsDir, path); const fullpath: string = join(this.configService.documentsDir, path);
this.logger.debug(`Removing path ${fullpath})`); this.logger.debug(`Removing path ${fullpath}`);
if (existsSync(fullpath)) { if (existsSync(fullpath)) {
return removeSync(fullpath); return removeSync(fullpath);
} }
this.logger.debug(`No such file or directory ${path}`);
throw new NotFoundException(`No such file or directory '${path}'`); throw new NotFoundException(`No such file or directory '${path}'`);
} }
......
...@@ -76,4 +76,7 @@ spec: ...@@ -76,4 +76,7 @@ spec:
failureThreshold: 3 failureThreshold: 3
securityContext: securityContext:
seLinuxOptions:
type: spc_t
fsGroup: FS_GROUP0000 fsGroup: FS_GROUP0000
fsGroupChangePolicy: OnRootMismatch
{
"name": "backend-files",
"lockfileVersion": 3,
"requires": true,
"packages": {}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment