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 0ca422a commit af26da7Copy full SHA for af26da7
bin/hedgedoc
@@ -17,7 +17,11 @@ SCRIPTNAME="$(basename "$0")"
17
XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
18
19
HEDGEDOC_SERVER="${HEDGEDOC_SERVER:-http://127.0.0.1:3000}"
20
+
21
+OLD_CODIMD_CONFIG_DIR="${HEDGEDOC_CONFIG_DIR:-$XDG_CONFIG_HOME/codimd}"
22
HEDGEDOC_CONFIG_DIR="${HEDGEDOC_CONFIG_DIR:-$XDG_CONFIG_HOME/$SCRIPTNAME}"
23
+[ -e "$OLD_CODIMD_CONFIG_DIR" ] && [ ! -e "$HEDGEDOC_CONFIG_DIR" ] && mv "$OLD_CODIMD_CONFIG_DIR" "$HEDGEDOC_CONFIG_DIR"
24
25
HEDGEDOC_COOKIES_FILE="${HEDGEDOC_COOKIES_FILE:-$HEDGEDOC_CONFIG_DIR/key.conf}"
26
27
# Auto-create XDG compliant config dir (https://www.ctrl.blog/entry/xdg-basedir-scripting)
0 commit comments