From 5a7fd46fc5bc113719b2ee2871d751b0986de2f5 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 24 May 2026 12:28:32 +0300 Subject: 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. --- lib/hyperstack/provisioning.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/hyperstack/provisioning.rb') 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" -- cgit v1.2.3