forked from mirrors/fancyindex
fix sed systax to work on linux not mac
This commit is contained in:
parent
79aea988f2
commit
4c5061f080
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
if [ "$DISABLE_AUTH" == true ]; then
|
||||
sed -i '' '/auth_basic/s/^/#/' /etc/nginx/conf.d/default.conf
|
||||
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