Files
2025-08-25 16:04:00 +08:00

12 lines
396 B
Bash

#!/bin/bash
# 拉去文件
cd /stable-diffusion-webui
git init
git remote add origin https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
git pull origin master
# 授权
chown webui:webui -R /home/webui/
chown webui:webui -R /stable-diffusion-webui/
# 初始化文件
su - webui -s /bin/bash -c "/stable-diffusion-webui/webui.sh --precision full --no-half --listen --skip-torch-cuda-test"