12 lines
183 B
Bash
Executable File
12 lines
183 B
Bash
Executable File
#!/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;"
|
|
|