refactor(系统设置): update tmp file folder

This commit is contained in:
Jianguo-Genius 2024-10-11 17:07:03 +08:00 committed by Craftsman
parent 5639549797
commit edf32c437d
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ public class LocalRepositoryDir {
/**
* 本地存储文件的根目录
*/
private static final String ROOT_DIR = "/tmp/metersphere";
private static final String ROOT_DIR = "/opt/metersphere/tmp";
/**
* 系统级别资源的根目录
*/

View File

@ -9,7 +9,7 @@ import java.awt.image.BufferedImage;
import java.io.*;
public class TempFileUtils {
private static final String TEMP_FILE_FOLDER = "/tmp/metersphere/file/";
private static final String TEMP_FILE_FOLDER = "/opt/metersphere/file-preview/";
private static final int CREATE_FILE_BYTES_MAX_LENGTH = 256;
private TempFileUtils() {
}