fix scpt
This commit is contained in:
parent
929d4dd7cf
commit
7aee2037fb
@ -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 "$*"
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user