chore: change mount folder path and inner folder permissions

This commit is contained in:
Ian
2026-09-29 23:48:09 +02:00
parent 9e060a39fe
commit a81e2a95b3
+2 -2
View File
@@ -4,7 +4,7 @@ set -euo pipefail
SCRIPT_DIR=$(realpath -- "$(dirname -- "${BASH_SOURCE[0]}")")
echo "Script dir: ${SCRIPT_DIR}"
BASE_DIR="${OPENCODE_DEV_HOME:-$HOME/dev/opencode-dev}"
BASE_DIR="${OPENCODE_DEV_HOME:-$HOME/opencode-dev}"
PROJECTS_DIR="$BASE_DIR/projects"
IMAGE_REPO="${IMAGE_REPO:-localhost/opencode-dev}"
# OPENCODE_VERSION="${OPENCODE_VERSION:-1.18.32}"
@@ -22,7 +22,7 @@ mkdir -p \
"$BASE_DIR/bash" \
"$PROJECTS_DIR"
chown "$(id -u):$(id -g)" "$BASE_DIR/opencode-data"
chmod -R 777 "$BASE_DIR"
if [[ ! -f "$HOME/.gitconfig" ]]; then
echo "WARNING: $HOME/.gitconfig does not exist; Git will use container defaults." >&2