mirror of
https://github.com/nextcloud/all-in-one.git
synced 2024-12-31 02:52:19 +08:00
Merge pull request #58 from nextcloud/improve-nextcloud-container
Improve nextcloud
This commit is contained in:
commit
f2def0cb2a
2 changed files with 5 additions and 3 deletions
|
@ -14,7 +14,7 @@ RUN set -ex; \
|
|||
# install the PHP extensions we need
|
||||
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
|
||||
ENV PHP_MEMORY_LIMIT 512M
|
||||
ENV PHP_UPLOAD_LIMIT 512M
|
||||
ENV PHP_UPLOAD_LIMIT 10G
|
||||
RUN set -ex; \
|
||||
\
|
||||
savedAptMark="$(apt-mark showmanual)"; \
|
||||
|
@ -229,7 +229,8 @@ RUN chown www-data:root -R /usr/src && \
|
|||
chown www-data:root -R /var/log/supervisord/ && \
|
||||
chown www-data:root -R /var/run/supervisord/ && \
|
||||
mkdir -p /var/log/nextcloud/ && \
|
||||
chown -R www-data:root /var/log/nextcloud/
|
||||
chown -R www-data:root /var/log/nextcloud/ && \
|
||||
rm -r /usr/src/nextcloud/apps/updatenotification
|
||||
|
||||
COPY start.sh /
|
||||
COPY notify.sh /
|
||||
|
|
|
@ -166,13 +166,14 @@ if version_greater "$image_version" "$installed_version"; then
|
|||
# Apply other settings
|
||||
echo "Applying other settings..."
|
||||
php /var/www/html/occ config:system:set upgrade.disable-web --type=bool --value=true
|
||||
php /var/www/html/occ config:app:set updatenotification notify_groups --value="[]"
|
||||
php /var/www/html/occ config:system:set mail_smtpmode --value="smtp"
|
||||
php /var/www/html/occ config:system:set trashbin_retention_obligation --value="auto, 30"
|
||||
php /var/www/html/occ config:system:set versions_retention_obligation --value="auto, 30"
|
||||
php /var/www/html/occ config:system:set activity_expire_days --value="30"
|
||||
php /var/www/html/occ config:system:set simpleSignUpLink.shown --type=bool --value=false
|
||||
php /var/www/html/occ config:system:set share_folder --value="/Shared"
|
||||
# Not needed anymore with the removal of the updatenotification app:
|
||||
# php /var/www/html/occ config:app:set updatenotification notify_groups --value="[]"
|
||||
|
||||
#upgrade
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue