1
0
This commit is contained in:
syui 2024-02-17 19:15:55 +09:00
parent 929d4dd7cf
commit 7aee2037fb
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56
2 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ case "$1" in
echo "machinectl reset done" echo "machinectl reset done"
;; ;;
*) *)
sudo machinectl start $name #sudo machinectl start $name
t=`ssh $name "$*"` t=`ssh $name "$*"`
if [ -z "$t" ];then if [ -z "$t" ];then
ssh -tt $name "$*" ssh -tt $name "$*"

View File

@ -93,8 +93,8 @@ function run(){
if [ -f $f_sleep ];then if [ -f $f_sleep ];then
rm $f_sleep rm $f_sleep
fi fi
ssh ue "conda activate ldm;cd ./stable-diffusion/;python safe.py \'${q}\' ${m}" ssh diffusers "conda activate ldm;cd ./stable-diffusion/;python safe.py \'${q}\' ${m}"
scp -r ue:stable-diffusion/t.png $f scp -r diffusers:stable-diffusion/t.png $f
if [ $? -ne 0 ];then if [ $? -ne 0 ];then
touch $f_sleep touch $f_sleep
fi fi