From: Edward Delaporte Date: Sun, 5 Apr 2026 07:15:08 +0000 (-0500) Subject: Fixes X-Git-Url: https://apps.delaporte.us/gitweb/dotfiles.git/commitdiff_plain/f6734e0b42c75ac94cdca181e4ddc9e198a16821?hp=ac77562e041b1a3c25777f2cd10e88de000470a9 Fixes --- diff --git a/files/autostart/sd.service b/files/autostart/sd.service index c49ea83..81e9e7f 100755 --- a/files/autostart/sd.service +++ b/files/autostart/sd.service @@ -4,7 +4,6 @@ Description=Stable Diffusion [Service] ExecStart=%h/dotfiles/run/sd.sh Type=exec -Restart=always [Install] WantedBy=multi-user.target diff --git a/install/sd.service.sh b/install/sd.service.sh index 5283a4d..7f1de19 100755 --- a/install/sd.service.sh +++ b/install/sd.service.sh @@ -4,4 +4,6 @@ ln -s ~/dotfiles/files/autostart/sd.service ~/.config/systemd/user/ ls -al ~/.config/systemd/user systemctl --user daemon-reload systemctl --user enable sd.service +# SD_DIR is used by run/sd.sh +systemctl --user import-environment SD_DIR systemctl --user status sd.service diff --git a/run/sd.sh b/run/sd.sh index 2947fff..747a5df 100755 --- a/run/sd.sh +++ b/run/sd.sh @@ -1,4 +1,4 @@ -#!/usr/bin/bash +#!/usr/bin/env bash source $HOME/envs/sd/bin/activate cd $SD_DIR;$SD_DIR/webui.sh --listen # Note: Simplest way to setup HTTPS is to run once with --enable-insecure-extension-access and search and install an 'https' extension.