mirror of
https://github.com/falk-werner/webfuse
synced 2024-10-27 20:34:10 +00:00
14 lines
266 B
Bash
14 lines
266 B
Bash
|
#!/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
|
||
|
|
||
|
|