From 8cb00f65a745ad760ae5775e88d9b659a59bfdf0 Mon Sep 17 00:00:00 2001 From: Josha von Gizycki Date: Tue, 2 Oct 2018 13:54:42 +0200 Subject: [PATCH] current user's home dir.. --- src/wanijo_pipeline/core.clj | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/wanijo_pipeline/core.clj b/src/wanijo_pipeline/core.clj index b8e36e2..2e30805 100644 --- a/src/wanijo_pipeline/core.clj +++ b/src/wanijo_pipeline/core.clj @@ -5,8 +5,7 @@ [org.httpkit.server :as http-kit] [lambdacd.runners :as runners] [lambdacd.core :as lambdacd] - [clojure.tools.logging :as log] - [clojure.java.io :refer [as-file]]) + [clojure.tools.logging :as log]) (:import (java.nio.file.attribute FileAttribute) (java.nio.file Files LinkOption)) (:gen-class)) @@ -18,7 +17,7 @@ (let [;; the home dir is where LambdaCD saves all data. ;; point this to a particular directory to keep builds around after restarting ;; home-dir (create-temp-dir) - home-dir (as-file "/home/nonroot") + home-dir (str (System/getProperty "user.home") "/wanijo-pipeline") config {:home-dir home-dir :name "wanijo pipeline"} ;; initialize and wire everything together