12 lines
		
	
	
		
			379 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			379 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env bash
 | |
| cd /root
 | |
| addgroup -g $GID user
 | |
| adduser -u $UID -G user -D -s /bin/bash user
 | |
| cp -r /ssh ~user/.ssh
 | |
| chown -R user:user ~user/.ssh
 | |
| cp update.sh all_repos.py ~user/
 | |
| echo "export URL=\"$URL\"" >>~user/.bash_profile
 | |
| echo "export APIKEY=\"$APIKEY\"" >>~user/.bash_profile
 | |
| chown user:user ~user/.bash_profile
 | |
| su -l user -c 'source ~/.bash_profile && ~user/update.sh'
 |