From fee9ceaa6be26ca866b1becc650c7bb53b29f18c Mon Sep 17 00:00:00 2001 From: Mar Alegre Date: Sat, 1 Jan 2022 11:27:22 -0500 Subject: [PATCH] bugfix --- nextcloud/Containerfile | 11 +++++++---- nextcloud/Systemdfile | 3 --- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/nextcloud/Containerfile b/nextcloud/Containerfile index 2ed70cf..979bf6c 100644 --- a/nextcloud/Containerfile +++ b/nextcloud/Containerfile @@ -22,9 +22,9 @@ ENV DBNAME=nextcloud ### # install packages we want -RUN apt update -y && apt install -y apache2 php-fpm php-gd php-zip \ - php-pgsql php-curl php-mbstring php-intl php-imagick php-xml php-gmp \ - php-json redis php-redis postgresql postgresql-doc php-ldap php-bcmath +RUN apt update -y && apt install -y apache2 php-fpm php-gd php-zip php-pgsql \ + php-curl php-mbstring php-intl php-imagick php-xml php-gmp php-json \ + redis php-redis postgresql postgresql-doc php-ldap php-bcmath cron # put database variables in /etc/environment so anyone can access them @@ -45,7 +45,7 @@ COPY assets/bin/ /usr/local/bin/ # make sure volume dirs exist, and copy sample data RUN mkdir -p /vol/data /vol/files -COPY --chown=www-data:www-data assets/data/ /vol/data/ +COPY --chown=www-data:www-data data/ /vol/data/ ### ### PHP @@ -119,6 +119,9 @@ RUN ln -s /vol/data/host.config.php nextcloud/config/host.config.php # copy nextcloud db service COPY assets/nextcloud-db.service /etc/systemd/system/ +# enable service +RUN systemctl enable nextcloud-db.service + ### ### Crontab ### diff --git a/nextcloud/Systemdfile b/nextcloud/Systemdfile index 7029783..70104c6 100644 --- a/nextcloud/Systemdfile +++ b/nextcloud/Systemdfile @@ -31,6 +31,3 @@ nc-occ app:disable comments dashboard federation files_trashbin firstrunwizard r # configure apps # set calendar to refresh subscriptions once a day (to set to one hour use 'PT1H' instead) nc-occ config:app:set dav calendarSubscriptionRefreshRate --value P1D - -# enable DB service -systemd enable nextcloud-db.service