diff options
author | Daniel Hansson <daniel@techandme.se> | 2017-06-09 19:32:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-09 19:32:37 +0300 |
commit | e7f6477af569af738a366e2ac555a5d4145f5354 (patch) | |
tree | eb3889c544ebecada5bd44f5603a744715d11aeb /nextcloud_install_production.sh | |
parent | 3b50dd151743f111d336b88977cf0ef26b09fc24 (diff) |
remove old code not needed
+ add smtp mode for the mail server to make it obvious it exists
Diffstat (limited to 'nextcloud_install_production.sh')
-rw-r--r-- | nextcloud_install_production.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/nextcloud_install_production.sh b/nextcloud_install_production.sh index 05d25924..cc399f42 100644 --- a/nextcloud_install_production.sh +++ b/nextcloud_install_production.sh @@ -281,6 +281,9 @@ sed -i "s|post_max_size = 8M|post_max_size = 1100M|g" /etc/php/7.0/apache2/php.i # upload_max sed -i "s|upload_max_filesize = 2M|upload_max_filesize = 1000M|g" /etc/php/7.0/apache2/php.ini +# Set SMTP mail +sudo -u www-data php "$NCPATH"/occ config:system:set mail_smtpmode --value="smtp" + # Increase max filesize (expects that changes are made in /etc/php/7.0/apache2/php.ini) # Here is a guide: https://www.techandme.se/increase-max-file-size/ VALUE="# php_value upload_max_filesize 511M" @@ -400,10 +403,6 @@ a2ensite nextcloud_http_domain_self_signed.conf a2dissite default-ssl service apache2 restart -# Install Libreoffice Writer to be able to read MS documents. -sudo apt install --no-install-recommends libreoffice-writer -y -sudo -u www-data php "$NCPATH"/occ config:system:set preview_libreoffice_path --value="/usr/bin/libreoffice" - whiptail --title "Which apps/programs do you want to install?" --checklist --separate-output "" 10 40 3 \ "Calendar" " " on \ "Contacts" " " on \ |