mirror of
				https://github.com/byReqz/ssh-chat-docker.git
				synced 2025-11-03 18:31:29 +00:00 
			
		
		
		
	adding launch parameter for admin keys
This commit is contained in:
		@@ -1,9 +1,9 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
if [ -f ssh_key ]; then
 | 
			
		||||
	/ssh-chat -i /ssh_key $@
 | 
			
		||||
	/ssh-chat -i /ssh_key --admin=/admin_keys $@
 | 
			
		||||
else
 | 
			
		||||
	echo "SSH Key not found at /ssh_key. Generating..."
 | 
			
		||||
	ssh-keygen -t rsa -b 4096 -f /ssh_key -q -N ''
 | 
			
		||||
	/ssh-chat -i /ssh_key $@
 | 
			
		||||
	/ssh-chat -i /ssh_key --admin /admin_keys $@
 | 
			
		||||
fi
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user