12 lines
396 B
Bash
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" |