All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
8 lines
261 B
Bash
Executable File
8 lines
261 B
Bash
Executable File
#!/bin/sh
|
|
BASE_CONFIG_PATH=/etc/nginx/nginx.conf
|
|
DAV_EXT_MODULE=ngx_http_dav_ext_module
|
|
|
|
if [ ! "$(grep $DAV_EXT_MODULE $BASE_CONFIG_PATH)" ]; then
|
|
echo "load_module /etc/nginx/modules/${DAV_EXT_MODULE}.so;\n$(cat $BASE_CONFIG_PATH)" > $BASE_CONFIG_PATH
|
|
fi
|