You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
266 B
14 lines
266 B
2 years ago
|
#!/usr/bin/bash
|
||
|
|
||
|
AUTH_TOKEN="$1"
|
||
|
|
||
|
if [[ "$AUTH_TOKEN" == "user:bob;token=foo" ]]
|
||
|
then
|
||
|
echo "$(date): webfuse: auth granted: $AUTH_TOKEN" >> /tmp/webfuse_auth.log
|
||
|
else
|
||
|
echo "$(date): webfuse: auth denied: $AUTH_TOKEN" >> /tmp/webfuse_auth.log
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
|