mirror of
				https://github.com/Burnett01/rsync-deployments.git
				synced 2025-11-04 09:29:04 +01:00 
			
		
		
		
	not on bash
This commit is contained in:
		
							parent
							
								
									7d8c19d72a
								
							
						
					
					
						commit
						f8b88bb4fa
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -5,7 +5,9 @@ set -eu
 | 
			
		|||
# Set deploy key
 | 
			
		||||
SSH_PATH="$HOME/.ssh"
 | 
			
		||||
# Create .ssh dir if it doesn't exist
 | 
			
		||||
[[ -d "$SSH_PATH" ]] || mkdir "$SSH_PATH"
 | 
			
		||||
if [ ! -d "$SSH_PATH" ]; then
 | 
			
		||||
  mkdir "$SSH_PATH"
 | 
			
		||||
fi
 | 
			
		||||
# Place deploy_key into .ssh dir
 | 
			
		||||
echo "$DEPLOY_KEY" > "$SSH_PATH/deploy_key"
 | 
			
		||||
# Set r+w to user only
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue