From: clinton_admin Date: Tue, 24 Mar 2015 20:25:45 +0000 (-0400) Subject: apache-sync-logs: allow setting VERBOSE from the environment X-Git-Url: https://git.hcoop.net/hcoop/scripts.git/commitdiff_plain/4a967ab2b9f64d34b90bedd5be3da0621fe719be apache-sync-logs: allow setting VERBOSE from the environment Makes one-shot testing way less of a pain --- diff --git a/apache-sync-logs b/apache-sync-logs index 58c24c5..aec4e67 100755 --- a/apache-sync-logs +++ b/apache-sync-logs @@ -9,7 +9,9 @@ kdestroy > /dev/null 2>&1 unlog #VERBOSE=true -VERBOSE=false +if [ -z "$VERBOSE" ]; then + VERBOSE=false +fi LOCAL_LOG_DIR=/var/log/apache2/user KEYTAB_DIR=/etc/keytabs/user.daemon