mirror of
				https://src.koozali.org/infra/smeserver-koji.git
				synced 2025-11-03 15:51:27 +01:00 
			
		
		
		
	rename script and fix nc test
This commit is contained in:
		@@ -18,7 +18,7 @@ for param in $1 $2 ; do
 | 
				
			|||||||
done
 | 
					done
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ $DEBUG ] ; then
 | 
					if [ $DEBUG ] ; then
 | 
				
			||||||
    set -x
 | 
					    set -xe
 | 
				
			||||||
    SILENT=
 | 
					    SILENT=
 | 
				
			||||||
    QUIET="-v"
 | 
					    QUIET="-v"
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
@@ -49,7 +49,8 @@ fi
 | 
				
			|||||||
if [ -z $KOJI_BUILD_FQDN ] ; then
 | 
					if [ -z $KOJI_BUILD_FQDN ] ; then
 | 
				
			||||||
    KOJI_BUILD_FQDN=$KOJI_HUB_FQDN
 | 
					    KOJI_BUILD_FQDN=$KOJI_HUB_FQDN
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
if [ ! (nc -z $KOJI_BUILD_FQDN 22) ] ; then
 | 
					
 | 
				
			||||||
 | 
					if [ ! nc -z $KOJI_BUILD_FQDN 22 2>/dev/null ] ; then
 | 
				
			||||||
        echo "I cannot connect to $KOJI_BUILD_FQDN! Is it online? "
 | 
					        echo "I cannot connect to $KOJI_BUILD_FQDN! Is it online? "
 | 
				
			||||||
        echo "Options:"
 | 
					        echo "Options:"
 | 
				
			||||||
        echo "- turn on the server"
 | 
					        echo "- turn on the server"
 | 
				
			||||||
		Reference in New Issue
	
	Block a user