Merge pull request #2 from nextcloud/enh/noid/add-app-and-upgrade-to-23

add the app into the container and upgrade to 23
This commit is contained in:
szaimen 2021-11-30 13:00:54 +01:00 committed by GitHub
commit 0987cc2db9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 2 deletions

View file

@ -109,7 +109,7 @@ RUN { \
VOLUME /var/www/html
ENV NEXTCLOUD_VERSION 22.2.3
ENV NEXTCLOUD_VERSION 23.0.0
RUN set -ex; \
fetchDeps=" \
@ -216,6 +216,13 @@ RUN set -ex; \
; \
rm -rf /var/lib/apt/lists/*
RUN rm -rf /tmp/nextcloud-aio && \
mkdir -p /tmp/nextcloud-aio && \
cd /tmp/nextcloud-aio && \
git clone https://github.com/nextcloud/all-in-one.git .; \
mkdir -p /usr/src/nextcloud/apps/nextcloud-aio; \
cp -r ./app/* /usr/src/nextcloud/apps/nextcloud-aio/
RUN chown www-data:root -R /usr/src && \
chown www-data:root -R /usr/local/etc/php/conf.d && \
chown www-data:root -R /var/log/supervisord/ && \

View file

@ -217,6 +217,13 @@ php /var/www/html/occ config:system:set overwrite.cli.url --value="https://$NC_D
php /var/www/html/occ config:system:set htaccess.RewriteBase --value="/"
php /var/www/html/occ maintenance:update:htaccess
# AIO app
if [ "$(php /var/www/html/occ config:app:get nextcloud-aio enabled)" = "" ]; then
php /var/www/html/occ app:enable nextcloud-aio
elif [ "$(php /var/www/html/occ config:app:get nextcloud-aio enabled)" = "no" ]; then
php /var/www/html/occ app:enable nextcloud-aio
fi
# Notify push
if ! [ -d "/var/www/html/custom_apps/notify_push" ]; then
php /var/www/html/occ app:install notify_push

View file

@ -4,4 +4,4 @@ Please note that in order to check if an app is already downloaded
Nextcloud will look for a folder with the same name as the app.
Therefore you need to add the app to one of the app directories
naming the directory `docker-aio`.
naming the directory `nextcloud-aio`.