aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfbt <fbt@fleshless.org>2019-11-26 01:49:12 +0300
committerfbt <fbt@fleshless.org>2019-11-26 01:49:12 +0300
commit8804a855b367249e10b9d90b314d557221d168a7 (patch)
tree8ccd6fd7bd29a1033ff4ea43467aec4ee83eddec
parent7858829ec464bcb5ee229f272dacd48063ece608 (diff)
downloadufw-tools-8804a855b367249e10b9d90b314d557221d168a7.tar.gz
ufw-tools-8804a855b367249e10b9d90b314d557221d168a7.zip
and some other stuff
Signed-off-by: fbt <fbt@fleshless.org>
-rwxr-xr-xufw4
1 files changed, 4 insertions, 0 deletions
diff --git a/ufw b/ufw
index 4472ea5..85e8144 100755
--- a/ufw
+++ b/ufw
@@ -57,6 +57,8 @@ usage() {
Environment variables:
UFW_CFG_FILE # Config file to read, defaults to \$XDG_CONFIG_DIR/ufw
UFW_SECRET # Your API secret
+ UFW_TMP_DIR
+ UFW_URL
EOF
}
@@ -361,6 +363,8 @@ main() {
cfg_file=${UFW_CFG_FILE:-"$XDG_CONFIG_DIR/ufw"}
[[ $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; }