Skip to content
Snippets Groups Projects
Commit d8769240 authored by Bob Mottram's avatar Bob Mottram
Browse files

php settinsg for webmail attachments

parent 9e9a180e
No related branches found
No related tags found
No related merge requests found
......@@ -1297,6 +1297,19 @@ function web_admin_create_email_proxy_screen {
chown www-data:www-data "/var/www/${local_hostname}/htdocs/admin/email_proxy.html"
}
function web_admin_php_settings {
php_upload_dir=/tmp
php_max_upload='20M'
sed -i "s|;upload_tmp_dir =|upload_tmp_dir =|g" /etc/php/7.0/fpm/php.ini
sed -i "s|;upload_tmp_dir =|upload_tmp_dir =|g" /etc/php/7.0/cli/php.ini
sed -i "s|upload_tmp_dir =.*|upload_tmp_dir = $php_upload_dir|g" /etc/php/7.0/fpm/php.ini
sed -i "s|upload_tmp_dir =.*|upload_tmp_dir = $php_upload_dir|g" /etc/php/7.0/cli/php.ini
sed -i "s|upload_max_filesize =.*|upload_max_filesize = $php_max_upload|g" /etc/php/7.0/fpm/php.ini
sed -i "s|upload_max_filesize =.*|upload_max_filesize = $php_max_upload|g" /etc/php/7.0/cli/php.ini
}
function install_web_admin_webmail {
if [ ! -f "/root/${PROJECT_NAME}/image_build/squirrelmail.tar.gz" ]; then
return
......@@ -1958,6 +1971,8 @@ function install_web_admin {
web_admin_translate
install_web_admin_webmail
web_admin_php_settings
}
# NOTE: deliberately no exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment