From bc4e610059ae9ba89b32ad3e0e814b1695a7415e Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Sat, 19 Nov 2022 13:34:26 +0900 Subject: [PATCH] include/inst: Move instance root to /tmp Instance data is currently kept in the user's home directory, which has the side-effect that data from crashed instances is not removed when the machine reboots. Such instances will be shown by `--list', and prevent singleton instances to be started. This commit addresses the issue by moving the instance root to /tmp, which *should* be a non-persistent filesystem. --- include/inst.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/inst.sh b/include/inst.sh index 68b406f..fe0f9ca 100644 --- a/include/inst.sh +++ b/include/inst.sh @@ -31,7 +31,7 @@ __init() { fi declare -xgr __inst_name="$name" - declare -xgr __inst_root="$TOOLBOX_HOME/inst" + declare -xgr __inst_root="/tmp/$USER/toolbox/inst" declare -xgr __inst_path="$__inst_root/$__inst_name" if ! mkdir -p "$__inst_path"; then -- 2.47.3