Skip to content

Commit 938f9e3

Browse files
fix(installer): default install dir to ~/rune-vault for all platforms (#57)
On macOS, Docker Desktop with VirtioFS cannot mount bind volumes under /opt/ because VirtioFS only shares paths within the user's home directory. Unify the default install directory to $HOME/rune-vault, consistent with CSP deployments which already use $HOME-based paths. Also fix install-dev.sh to resolve the invoking user's home under sudo instead of root's home. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5cef6c3 commit 938f9e3

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ done
2626

2727
REPO="CryptoLabInc/rune-admin"
2828
DOCKER_IMAGE="ghcr.io/cryptolabinc/rune-vault"
29-
DEFAULT_INSTALL_DIR="/opt/rune-vault"
29+
_user_home="${SUDO_USER:+$(eval echo ~"$SUDO_USER")}"
30+
DEFAULT_INSTALL_DIR="${_user_home:-$HOME}/rune-vault"
3031
VAULT_PUBLIC_IP=""
3132
CSP_CA_CERT_LOCAL=""
3233

scripts/install-dev.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ DOCKER_IMAGE="ghcr.io/cryptolabinc/rune-vault"
3232
GIT_BRANCH="$(git -C "$REPO_ROOT" rev-parse --abbrev-ref HEAD | sed 's|/|-|g')"
3333
GIT_COMMIT="$(git -C "$REPO_ROOT" rev-parse --short HEAD)"
3434
DOCKER_TAG="${GIT_BRANCH}-${GIT_COMMIT}"
35-
DEFAULT_INSTALL_DIR="$HOME/rune-vault-dev"
35+
_user_home="${SUDO_USER:+$(eval echo ~"$SUDO_USER")}"
36+
DEFAULT_INSTALL_DIR="${_user_home:-$HOME}/rune-vault-dev"
3637
VAULT_PUBLIC_IP=""
3738
CSP_CA_CERT_LOCAL=""
3839

0 commit comments

Comments
 (0)