#!/bin/bash # Create a systemd service for AUTOMATIC1111 so it starts on boot # Run this AFTER setup-sd.sh has completed successfully set -e SD_DIR="$HOME/stable-diffusion-webui" SERVICE_FILE="/etc/systemd/system/stable-diffusion.service" CURRENT_USER=$(whoami) echo "Creating systemd service for Stable Diffusion WebUI..." sudo tee "$SERVICE_FILE" > /dev/null <