From 7e3ef275f870737b853fda3e007e74de2112a7d5 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 8 May 2019 17:58:09 +0200 Subject: Added install script Co-authored-by: LarsVomMars --- src/main/kotlin/App.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/kotlin/App.kt') diff --git a/src/main/kotlin/App.kt b/src/main/kotlin/App.kt index c403b5a..0bd15b2 100644 --- a/src/main/kotlin/App.kt +++ b/src/main/kotlin/App.kt @@ -13,7 +13,8 @@ import java.net.* import java.util.logging.* import kotlin.system.* -const val fileHome = "files" +// TODO: Add abstract and secure file home support for windows/BSD/macOS +val fileHome = if (System.getProperty("os.name") != "Linux") "files" else "/usr/share/kloud/files" val databaseController = DatabaseController() val userHandler = UserHandler() val fileController = FileController() -- cgit v1.2.3