4
									
								
								ufw
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								ufw
									
									
									
									
									
								
							| @@ -57,6 +57,8 @@ usage() { | |||||||
| 		    Environment variables: | 		    Environment variables: | ||||||
| 		        UFW_CFG_FILE   # Config file to read, defaults to \$XDG_CONFIG_DIR/ufw | 		        UFW_CFG_FILE   # Config file to read, defaults to \$XDG_CONFIG_DIR/ufw | ||||||
| 				  UFW_SECRET     # Your API secret | 				  UFW_SECRET     # Your API secret | ||||||
|  | 				  UFW_TMP_DIR | ||||||
|  | 				  UFW_URL | ||||||
| 	EOF | 	EOF | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -361,6 +363,8 @@ main() { | |||||||
| 	cfg_file=${UFW_CFG_FILE:-"$XDG_CONFIG_DIR/ufw"} | 	cfg_file=${UFW_CFG_FILE:-"$XDG_CONFIG_DIR/ufw"} | ||||||
|  |  | ||||||
| 	[[ $UFW_SECRET ]] && secret=$UFW_SECRET | 	[[ $UFW_SECRET ]] && secret=$UFW_SECRET | ||||||
|  | 	[[ $UFW_TMP_DIR ]] && cfg_tmp_dir=$UFW_TMP_DIR | ||||||
|  | 	[[ $UFW_URL ]] && cfg_service_url=$UFW_URL | ||||||
|  |  | ||||||
| 	[[ $1 ]] || { usage; return 1; } | 	[[ $1 ]] || { usage; return 1; } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user