fix sed systax to work on linux not mac

This commit is contained in:
Josh Bentley 2019-05-03 11:58:59 +01:00
parent 79aea988f2
commit 4c5061f080

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
if [ "$DISABLE_AUTH" == true ]; then 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 elif [ ! -z "$WEBUSER" ]; then
addauth $WEBUSER $WEBPASSWORD addauth $WEBUSER $WEBPASSWORD
fi fi