Update main.sh

This commit is contained in:
myvesta 2020-07-12 20:41:27 +02:00 committed by GitHub
commit 9ac43d1f8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1047,8 +1047,8 @@ escape_shell_quote() {
}
replace_php_config_value() {
if [ ! -z $4 ]; then
if [ "$4" = "yes" ] || [ $4 -eq 1 ]; then
if [ ! -z "$4" ]; then
if [ "$4" = "yes" ] || [ "$4" = "true" ] || [ "$4" = "1" ] || [ $4 -eq 1 ]; then
echo "=== Replacing $1 to $2 in $3"
fi
fi