Skip to content

sed expression error #13

@dominicwa

Description

@dominicwa

start.sh generates an error:

sed: bad option in substitution expression

I thought it might be caused by PHP configs containing dots...

e.g.

if [ ! -z "$PHP_DATE_TIMEZONE" ]; then sed -i "s/\;\?\\s\?date.timezone = .*/date.timezone = $PHP_DATE_TIMEZONE/" /etc/php7/php.ini && echo "Set PHP date.timezone = $PHP_DATE_TIMEZONE..."; fi

But I've tried escaping the dots in the config name and it doesn't fix reliably (I'm getting inconsistent results, not sure exactly what's going on).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions