add the app into the container and upgrade to 23

Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
szaimen 2021-11-30 12:50:08 +01:00
parent 9f82cd3133
commit aadf624257
3 changed files with 16 additions and 2 deletions

View file

@ -109,7 +109,7 @@ RUN { \
VOLUME /var/www/html VOLUME /var/www/html
ENV NEXTCLOUD_VERSION 22.2.3 ENV NEXTCLOUD_VERSION 23.0.0
RUN set -ex; \ RUN set -ex; \
fetchDeps=" \ fetchDeps=" \
@ -216,6 +216,13 @@ RUN set -ex; \
; \ ; \
rm -rf /var/lib/apt/lists/* 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 && \ RUN chown www-data:root -R /usr/src && \
chown www-data:root -R /usr/local/etc/php/conf.d && \ chown www-data:root -R /usr/local/etc/php/conf.d && \
chown www-data:root -R /var/log/supervisord/ && \ 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 config:system:set htaccess.RewriteBase --value="/"
php /var/www/html/occ maintenance:update:htaccess 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 # Notify push
if ! [ -d "/var/www/html/custom_apps/notify_push" ]; then if ! [ -d "/var/www/html/custom_apps/notify_push" ]; then
php /var/www/html/occ app:install notify_push 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. 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 Therefore you need to add the app to one of the app directories
naming the directory `docker-aio`. naming the directory `nextcloud-aio`.