Check if we already added dav_ext_module
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user