forked from mirrors/fancyindex
add conditional to allow nginxauth to be commented out
This commit is contained in:
parent
200549d8c9
commit
79aea988f2
2 changed files with 5 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ ! -z "$WEBUSER" ]; then
|
||||
if [ "$DISABLE_AUTH" == true ]; then
|
||||
sed -i '' '/auth_basic/s/^/#/' /etc/nginx/conf.d/default.conf
|
||||
elif [ ! -z "$WEBUSER" ]; then
|
||||
addauth $WEBUSER $WEBPASSWORD
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue