forked from Spark/ssm-services
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			248 B
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			248 B
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env ssm
 | |
| 
 | |
| cfg_sshd_cfgdir='/etc/ssh'
 | |
| 
 | |
| service_respawn=always
 | |
| service_command=( /usr/bin/sshd -D -f "$cfg_sshd_cfgdir/sshd_config" )
 | |
| 
 | |
| depends_ready=( znet )
 | |
| 
 | |
| pre_start() {
 | |
| 	if ! [[ -e "/etc/ssh/ssh_host_key" ]]; then
 | |
| 		ssh-keygen -A
 | |
| 	fi
 | |
| }
 |