Search Results

Search: Posts Made By: Larrykh465
3,333
Posted By Larrykh465
#!/bin/bash # phpupdate.sh ...
#!/bin/bash

# phpupdate.sh

line1='upload_max_filesize'
line2='post_max_size'
line3='upload_max_filesize = "61M";'
line4='post_max_size = "60M";'

find -type f -iname 'php.ini' |

while...
3,333
Posted By Larrykh465
#!/bin/bash line1='upload_max_filesize =...
#!/bin/bash
line1='upload_max_filesize = "41M";'
line2='post_max_size = "40M";'
find -type f -iname 'php.ini' |
while read f; do
if ! grep -qFe "$line1" -e "$line2" "$f"; then
printf...
3,333
Posted By Larrykh465
Append two lines of text to php.ini in the entire directory tree.e
I am looking to write a script that will read the php.ini files on my web host. If the two lines do exist do nothing. If not append two lines to the end of it then move on to the next directory and...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 10:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy