Update ini files for all available SAPI

This commit is contained in:
Shivam Mathur
2020-12-02 05:50:56 +05:30
parent 5a15252e66
commit f0fb8731a5
7 changed files with 41 additions and 22 deletions

View File

@ -14,7 +14,12 @@ export async function addINIValuesUnix(
script +=
'\n' + (await utils.addLog('$tick', line, 'Added to php.ini', 'linux'));
});
return 'echo "' + ini_values.join('\n') + '" >> $ini_file' + script;
return (
'echo "' +
ini_values.join('\n') +
'" | sudo tee -a "${ini_file[@]}" >/dev/null 2>&1' +
script
);
}
/**