From 500e3e46e06c235f10ba2c779bd8fcf7a9c3c240 Mon Sep 17 00:00:00 2001 From: Anatolii Zimovskii Date: Tue, 25 Jan 2022 21:06:27 +0300 Subject: [PATCH] testrail fixes --- linux/ecosystem/testrail/ad/run.sh | 3 ++- linux/ecosystem/testrail/ldap/run.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/linux/ecosystem/testrail/ad/run.sh b/linux/ecosystem/testrail/ad/run.sh index 5bc9ee463..36c9a7dbc 100755 --- a/linux/ecosystem/testrail/ad/run.sh +++ b/linux/ecosystem/testrail/ad/run.sh @@ -49,7 +49,8 @@ echo "[testrail] Background task stoped" ################################################################################# if [[ -z "${FIX_WWW_DATA}" ]]; then - echo "[apache2] env FIX_WWW_DATA is not set. Skipping..." + echo "[apache2] env FIX_WWW_DATA is not set. Fixing permissions anyway" + chown www-data:www-data /var/www -R elif [ "${FIX_WWW_DATA}" == "false" ]; then echo "[apache2] env FIX_WWW_DATA is set to false. Skipping..." elif [ "${FIX_WWW_DATA}" == "true" ]; then diff --git a/linux/ecosystem/testrail/ldap/run.sh b/linux/ecosystem/testrail/ldap/run.sh index b4ba56179..b09b3ea99 100755 --- a/linux/ecosystem/testrail/ldap/run.sh +++ b/linux/ecosystem/testrail/ldap/run.sh @@ -46,7 +46,8 @@ echo "[testrail] Background task stoped" ################################################################################# if [[ -z "${FIX_WWW_DATA}" ]]; then - echo "[apache2] env FIX_WWW_DATA is not set. Skipping..." + echo "[apache2] env FIX_WWW_DATA is not set. Fixing permissions anyway" + chown www-data:www-data /var/www -R elif [ "${FIX_WWW_DATA}" == "false" ]; then echo "[apache2] env FIX_WWW_DATA is set to false. Skipping..." elif [ "${FIX_WWW_DATA}" == "true" ]; then