Is it possible to auto update php.ini via a bash script?

Posted by Tada.wav on Server Fault See other posts from Server Fault or by Tada.wav
Published on 2013-11-09T15:53:06Z Indexed on 2013/11/09 15:56 UTC
Read the original article Hit count: 215

Filed under:
|
|

I'm trying to write an install script and i need to change the sendmail line in php.ini

but I want to do this automatically

at the moment I'm doing this manually:

  • sudo nano /etc/php5/apache2/php.ini
  • finding the line containing sendmail_path =
  • then editing it to be
  • sendmail_path = /usr/bin/msmtp -t

then saving the file.

Is it possible to just auto script this to make the change?

Thanks a lot

© Server Fault or respective owner

Related posts about ubuntu

Related posts about bash