about summary refs log tree commit diff
path: root/bin/svtree-run
diff options
context:
space:
mode:
Diffstat (limited to 'bin/svtree-run')
-rwxr-xr-xbin/svtree-run8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/svtree-run b/bin/svtree-run
index 521a2bc..e8d1422 100755
--- a/bin/svtree-run
+++ b/bin/svtree-run
@@ -3,7 +3,11 @@
 importas -D "/etc" -S XDG_CONFIG_HOME
 importas -D "/run" -S XDG_RUNTIME_DIR
 
-envfile -I /opt/svtree/dirs.conf
+define STATE_DIR "${XDG_CONFIG_HOME}/s6-rc"
+define LIVE_DIR "${XDG_RUNTIME_DIR}/s6-rc"
+define SCAN_DIR "${XDG_RUNTIME_DIR}/service"
+define SOURCE_DIR "${STATEDIR}/src"
+define COMPILED_DIR "${STATEDIR}/compiled"
 
 # compile s6-rc db
 foreground { /opt/svtree/bin/svtree-compile }
@@ -25,7 +29,7 @@ foreground { rm -rf ${SCAN_DIR} }
 foreground { elglob l ${LIVE_DIR}* rm -rf ${l} }
 
 # setup rundir
-if { cp -va -- ${CONF_DIR}/run-image/service ${SCAN_DIR} }
+if { cp -va -- ${STATE_DIR}/run-image/service ${SCAN_DIR} }
 
 background {
 	# catch-all logger