Check if we already added dav_ext_module
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2024-12-15 01:31:10 -06:00
parent 65ab1e9d27
commit 8007ce8b81

View File

@@ -1,3 +1,7 @@
#!/bin/sh
BASE_CONFIG_PATH=/etc/nginx/nginx.conf
echo "load_module /etc/nginx/modules/ngx_http_dav_ext_module.so;\n$(cat $BASE_CONFIG_PATH)" > $BASE_CONFIG_PATH
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