mirror of
https://github.com/booklore-app/booklore.git
synced 2026-02-18 00:17:53 +01:00
Adding USER_ID and GROUP_ID to specify permission without making breaking change (#882)
* fixing permissions to be able to run springboot with given UID and GID * Adding USER_ID and GROUP_ID to specify permission without making breaking change * move su exec to start.sh --------- Co-authored-by: Aditya Chandel <8075870+adityachandelgit@users.noreply.github.com>
This commit is contained in:
@@ -64,10 +64,10 @@ public class FileUploadService {
|
||||
private final AdditionalFileMapper additionalFileMapper;
|
||||
private final MonitoringService monitoringService;
|
||||
|
||||
@Value("${PUID:0}")
|
||||
@Value("${PUID:${USER_ID:0}}")
|
||||
private String userId;
|
||||
|
||||
@Value("${GUID:0}")
|
||||
@Value("${PGID:${GROUP_ID:0}}")
|
||||
private String groupId;
|
||||
|
||||
public Book uploadFile(MultipartFile file, long libraryId, long pathId) throws IOException {
|
||||
|
||||
Reference in New Issue
Block a user