refactor+feat: renamed scripts with numbers and added some checks for dev envs
This commit is contained in:
		
							parent
							
								
									89103dc0ee
								
							
						
					
					
						commit
						a44e857e80
					
				
					 5 changed files with 16 additions and 0 deletions
				
			
		
							
								
								
									
										8
									
								
								tools/repo/check.d/20-no-commented-certbot-domains.sh
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										8
									
								
								tools/repo/check.d/20-no-commented-certbot-domains.sh
									
										
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,8 @@ | |||
| #!/bin/sh | ||||
| 
 | ||||
| for dcf in servers/*/docker-compose.d/docker-compose.yml; do | ||||
|   if grep -e "#.*CERTBOT_DOMAINS" $dcf; then | ||||
|     echo "$dcf has commented out domains!" | ||||
|     exit 1 | ||||
|   fi | ||||
| done | ||||
							
								
								
									
										8
									
								
								tools/repo/check.d/30-no-localhost-domains.sh
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										8
									
								
								tools/repo/check.d/30-no-localhost-domains.sh
									
										
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,8 @@ | |||
| #!/bin/sh | ||||
| 
 | ||||
| for f in servers/*/docker-compose.d/custom/nginx/conf.d/*.conf; do | ||||
|   if grep -e "server_name.*\.localhost" $f; then | ||||
|     echo "$f has a local server_name!" | ||||
|     exit 1 | ||||
|   fi | ||||
| done | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue