update README; generate restic password, when not entered
This commit is contained in:
		
							parent
							
								
									f1fa099e4e
								
							
						
					
					
						commit
						be1751a9c4
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -56,7 +56,7 @@ docker login -u gitlab+deploy-token-5 registry.git.base23.de
 | 
			
		|||
 | 
			
		||||
1. [Create a Storage Box sub account](https://confluence.base23.de/pages/viewpage.action?pageId=27820074).
 | 
			
		||||
2. Enter the username to `env.template`.
 | 
			
		||||
3. Run the initial configuration script:  
 | 
			
		||||
3. Run the initial configuration script:
 | 
			
		||||
 | 
			
		||||
```shell
 | 
			
		||||
cd /root/apps \
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -38,7 +38,7 @@ if [[ ! -f ./.env ]]; then
 | 
			
		|||
	echo "AUTHENTIK_SECRET_KEY=$(openssl rand -base64 60 | tr -d '\n')" >> ./.env
 | 
			
		||||
	prompt_password "AUTHENTIK_EMAIL__PASSWORD"; echo "AUTHENTIK_EMAIL__PASSWORD=${RETURNED_PASSWORD}" >> ./.env; unset RETURNED_PASSWORD
 | 
			
		||||
	prompt_password "GEOIPUPDATE_LICENSE_KEY"; echo "GEOIPUPDATE_LICENSE_KEY=${RETURNED_PASSWORD}" >> ./.env; unset RETURNED_PASSWORD
 | 
			
		||||
	prompt_password "RESTIC_REPO_PASSWORD"; echo "RESTIC_REPO_PASSWORD=${RETURNED_PASSWORD}" >> ./.env; unset RETURNED_PASSWORD
 | 
			
		||||
	prompt_password "RESTIC_REPO_PASSWORD (leave empty to generate a password)"; echo "RESTIC_REPO_PASSWORD=$([[ -n ${RETURNED_PASSWORD} ]] && echo -n "${RETURNED_PASSWORD}" || openssl rand -base64 60 | tr -d '\n')" >> ./.env; unset RETURNED_PASSWORD
 | 
			
		||||
	echo "" >> ./.env
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue