Improve bootstrap setup and script permissions
This commit is contained in:
15
bootstrap.sh
15
bootstrap.sh
@@ -3,6 +3,18 @@ set -euo pipefail
|
||||
|
||||
BASE_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
|
||||
mkdir -p "$BASE_DIR/generated"
|
||||
chmod +x "$BASE_DIR/scripts/probe.sh"
|
||||
chmod +x "$BASE_DIR/scripts/render-config.py"
|
||||
|
||||
if [ -f "$BASE_DIR/scripts/burst-95.sh" ]; then
|
||||
chmod +x "$BASE_DIR/scripts/burst-95.sh"
|
||||
fi
|
||||
|
||||
if [ -f "$BASE_DIR/scripts/normal-80.sh" ]; then
|
||||
chmod +x "$BASE_DIR/scripts/normal-80.sh"
|
||||
fi
|
||||
|
||||
"$BASE_DIR/scripts/probe.sh"
|
||||
python3 "$BASE_DIR/scripts/render-config.py"
|
||||
|
||||
@@ -15,3 +27,6 @@ cat "$BASE_DIR/generated/machine-profile.json"
|
||||
echo
|
||||
echo "=== continue config ==="
|
||||
echo "~/.continue/config.yaml updated"
|
||||
echo
|
||||
echo "=== ollama limits ==="
|
||||
systemctl show ollama | grep -E 'CPUQuota|MemoryHigh|MemoryMax'
|
||||
|
||||
Reference in New Issue
Block a user