From 21f5b034cffe99ceffcab4679d4ee26aa4c6b07c Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 23 Feb 2018 18:13:11 +0300 Subject: fix tests under macOS --- juick-www/src/main/java/com/juick/www/controllers/NewMessage.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'juick-www/src/main/java') diff --git a/juick-www/src/main/java/com/juick/www/controllers/NewMessage.java b/juick-www/src/main/java/com/juick/www/controllers/NewMessage.java index e652b4d5..4d3b4351 100644 --- a/juick-www/src/main/java/com/juick/www/controllers/NewMessage.java +++ b/juick-www/src/main/java/com/juick/www/controllers/NewMessage.java @@ -68,9 +68,9 @@ public class NewMessage { private PMQueriesService pmQueriesService; @Inject private WebApp webApp; - @Value("${img_path:#{systemEnvironment['TEMP']}}") + @Value("${img_path:#{systemEnvironment['TEMP'] ?: '/tmp'}}") private String imgDir; - @Value("${upload_tmp_dir:#{systemEnvironment['TEMP']}}") + @Value("${upload_tmp_dir:#{systemEnvironment['TEMP'] ?: '/tmp'}}") private String tmpDir; private static final Logger logger = LoggerFactory.getLogger(NewMessage.class); -- cgit v1.2.3