Hello all,
Could someone tell me if they can spot my mistake in the bollow script?
This is the error message that I am getting:
Thank you in advance
Fred
Could someone tell me if they can spot my mistake in the bollow script?
Code:
#!/bin/sh
INIFILE="/usr/local/etc/php.ini"
perl -p -i -e '
s/.*memory_limit.*/memory_limit = 32M/;
s/.*upload_max_filesize.*/upload_max_filesize = 10M/;
s/.*post_max_size.*/post_max_size = 20M/;
' "$INIFILE"
PHPPFMFILE="/usr/local/etc/php-fpm.conf"
perl -p -i -e '
s/.*;events.mechanism.*/events.mechanism = kqueue/;
s/.*listen.*/listen = /var/run/php-fpm.sock/;
s/.*;listen.owner.*/listen.owner = www/;
s/.*;listen.group.*/listen.group = www/;
s/.*;listen.mode.*/listen.mode = 0666/;
' "$PHPPFMFILE"
Code:
Having no space between pattern and following word is deprecated at -e line 3.
Bareword found where operator expected at -e line 3, near "s/.*listen.*/listen = /var"
syntax error at -e line 3, near "s/.*listen.*/listen = /var"
Execution of -e aborted due to compilation errors.
Fred