Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
set -e # Exit immediately if a command exits with a non-zero status.
# set -x # Uncomment for very verbose debugging of the script itself
INSTALL_LOG_FILE="/home/user/comfyui_full_install_and_run.log"
touch "$INSTALL_LOG_FILE"
chown user:users "$INSTALL_LOG_FILE" || echo "Warning: Initial chown of $INSTALL_LOG_FILE failed. Continuing."
exec > "$INSTALL_LOG_FILE" 2>&1 # Redirect all script output
echo "======================================================================"
#!/bin/bash
set -e # Exit immediately if a command exits with a non-zero status.
# set -x # Uncomment for very verbose debugging of the script itself
INSTALL_LOG_FILE="/home/user/comfyui_full_install_and_run.log"
touch "$INSTALL_LOG_FILE"
chown user:users "$INSTALL_LOG_FILE" || echo "Warning: Initial chown of $INSTALL_LOG_FILE failed. Continuing."
exec > "$INSTALL_LOG_FILE" 2>&1 # Redirect all script output
echo "======================================================================"
#!/bin/bash
set -e # Exit immediately if a command exits with a non-zero status.
# set -x # Uncomment for very verbose debugging of the script itself
INSTALL_LOG_FILE="/home/user/comfyui_full_install_and_run.log"
touch "$INSTALL_LOG_FILE"
chown user:users "$INSTALL_LOG_FILE" || echo "Warning: Initial chown of $INSTALL_LOG_FILE failed. Continuing."
exec > "$INSTALL_LOG_FILE" 2>&1 # Redirect all script output
echo "======================================================================"