scline / docker-cacti

Cacti version 1+ under Docker
113 stars 57 forks source link

Patch 2 #48

Closed joey741019 closed 5 years ago

joey741019 commented 5 years ago

Hotfix of PHP variables add space for sed correct replace and add change log

jflemer-ndp commented 5 years ago

It would be more robust to handle arbitrary space, including none with "<space>*". For example:

s/^\(memory_limit *=\).*/\1 ${PHP_MEMORY_LIMIT}/
scline commented 5 years ago

Thank you for contributing back @joey741019, apologize for the delay. Great advice @jflemer-ndp, if no one PR's that addition I will throw it in (^_^)