We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3f6329 commit 2a05918Copy full SHA for 2a05918
debian/startup/kolibri.default
@@ -56,12 +56,22 @@ then
56
done
57
fi
58
59
-# Load user configuration
+# Load non-modular final configuration
60
61
if [ -e /etc/kolibri/daemon.conf ]
62
then
63
. /etc/kolibri/daemon.conf
64
65
66
+
67
+# It should be possible to use "~/.kolibri" for a relative
68
+# path for Kolibri, but for various reasons, the finally
69
+# exported environment var should be absolute.
70
+#
71
+# Expands ~ in KOLIBRI_HOME to KOLIBRI_USER's HOME
72
+KOLIBRI_USER_HOME="$(getent passwd $KOLIBRI_USER | awk -F ':' '{print $6}')"
73
+KOLIBRI_HOME=${KOLIBRI_HOME//\~/"$KOLIBRI_USER_HOME"}
74
75
76
# Switch off the allexport behavior
77
set +o allexport
0 commit comments