12 lines
183 B
Bash
12 lines
183 B
Bash
|
|
#!/bin/bash
|
||
|
|
|
||
|
|
if [[ $HTPASSWD ]]
|
||
|
|
then
|
||
|
|
cp auth.conf /etc/nginx/conf.d/default.conf
|
||
|
|
envsubst < auth.htpasswd > /etc/nginx/auth.htpasswd
|
||
|
|
fi
|
||
|
|
|
||
|
|
sigal build
|
||
|
|
nginx -g "daemon off;"
|
||
|
|
|