Change tab to spaces

Signed-off-by: Adyanth H <33192449+adyanth@users.noreply.github.com>
This commit is contained in:
Adyanth H 2021-06-16 10:53:28 +05:30
parent 901ee3d10b
commit 437e8ddbf5
1 changed files with 2 additions and 2 deletions

View File

@ -199,7 +199,7 @@ setup_php_env() {
VIRTUAL_HOST="$ServerIP"
fi;
local vhost_line="\t\t\t\"VIRTUAL_HOST\" => \"${VIRTUAL_HOST}\","
local corshosts_line="\t\t\t\"CORS_HOSTS\" => \"${CORS_HOSTS}\","
local corshosts_line="\t\t\t\"CORS_HOSTS\" => \"${CORS_HOSTS}\","
local serverip_line="\t\t\t\"ServerIP\" => \"${ServerIP}\","
local php_error_line="\t\t\t\"PHP_ERROR_LOG\" => \"${PHP_ERROR_LOG}\","
@ -208,7 +208,7 @@ setup_php_env() {
sed -i "/bin-environment/ a\\${vhost_line}" "$PHP_ENV_CONFIG"
grep -qP "$corshosts_line" "$PHP_ENV_CONFIG" || \
sed -i "/bin-environment/ a\\${corshosts_line}" "$PHP_ENV_CONFIG"
grep -qP "$serverip_line" "$PHP_ENV_CONFIG" || \
grep -qP "$serverip_line" "$PHP_ENV_CONFIG" || \
sed -i "/bin-environment/ a\\${serverip_line}" "$PHP_ENV_CONFIG"
grep -qP "$php_error_line" "$PHP_ENV_CONFIG" || \
sed -i "/bin-environment/ a\\${php_error_line}" "$PHP_ENV_CONFIG"