diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-24 12:28:32 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-24 12:28:32 +0300 |
| commit | 5a7fd46fc5bc113719b2ee2871d751b0986de2f5 (patch) | |
| tree | 889679cbf04099fb78720155a7f4fe22ba066b69 /lib/hyperstack | |
| parent | f8ec79495329f21534403fd48505bec6185a7046 (diff) | |
fix(provisioning): narrow ComfyUI install chmod to models_dir and output_dir\n\nThe comfyui_install_script previously ran\n\n chmod -R 0777 File.dirname(models_dir)\n\nwhich chmods the *parent* directory (e.g. /ephemeral). If models_dir\nis configured directly under /ephemeral that gives world-write access to\nall sibling directories (vLLM hug cache, Ollama models, etc.).\n\nNow chmod only the two directories that actually need it: models_dir\nand output_dir.
Diffstat (limited to 'lib/hyperstack')
| -rw-r--r-- | lib/hyperstack/provisioning.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hyperstack/provisioning.rb b/lib/hyperstack/provisioning.rb index 98ef1c6..4d33731 100644 --- a/lib/hyperstack/provisioning.rb +++ b/lib/hyperstack/provisioning.rb @@ -275,7 +275,7 @@ module HyperstackVM # Ephemeral NVMe dirs for models and output. script << "sudo mkdir -p #{Shellwords.escape(models_dir)} #{Shellwords.escape(output_dir)}" - script << "sudo chmod -R 0777 #{Shellwords.escape(File.dirname(models_dir))}" + script << "sudo chmod -R 0777 #{Shellwords.escape(models_dir)} #{Shellwords.escape(output_dir)}" # Clone or update ComfyUI from the official repo (no sudo needed in ubuntu home). script << "if [ ! -d #{Shellwords.escape(install_dir)} ]; then" |
