forked from Spark/ssm-services
		
	indentation and cleaner code
This commit is contained in:
		
							
								
								
									
										19
									
								
								init.d/nginx
									
									
									
									
									
								
							
							
						
						
									
										19
									
								
								init.d/nginx
									
									
									
									
									
								
							| @@ -10,21 +10,16 @@ conftest() { | |||||||
| } | } | ||||||
|  |  | ||||||
| reload() { | reload() { | ||||||
|     nginx.test_config -q || { | 	if nginx.test_config -q; then | ||||||
|         watchman.err "Nginx config test failed, not reloading." | 		watchman.reload | ||||||
|         return 1 | 	else | ||||||
|     } | 		watchman.err "Nginx config test failed, not reloading." | ||||||
|  | 		return 1 | ||||||
|     watchman.reload | 	fi | ||||||
| } | } | ||||||
|  |  | ||||||
| restart() { | restart() { | ||||||
|     nginx.test_config -q || { | 	stop && start | ||||||
|         watchman.err "Nginx config test failed, not restarting." |  | ||||||
|         return 1 |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     stop; start |  | ||||||
| } | } | ||||||
|  |  | ||||||
| upgrade() { | upgrade() { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user