From: Matthias Kruk Date: Sat, 19 Nov 2022 04:34:26 +0000 (+0900) Subject: include/inst: Move instance root to /tmp X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=bc4e610059ae9ba89b32ad3e0e814b1695a7415e;p=toolbox 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. --- 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