Browse Source

tweaks to new config

www
Fernando Alegre 7 months ago
parent
commit
783e4abcbf
  1. 4
      nextcloud/Containerfile
  2. 2
      nextcloud/Initfile
  3. 10
      nextcloud/scripts/clean.sh

4
nextcloud/Containerfile

@ -37,7 +37,9 @@ RUN export PSQLV="$(psql -V | cut -d ' ' -f 3 | cut -d '.' -f 1)" && \
echo "export PSQLV=$PSQLV" >> /vol/data/etc/environment && \
echo "export PHPV=$PHPV" >> /vol/data/etc/environment && \
echo "export DBUSER=$DBUSER" >> /vol/data/etc/environment && \
echo "export DBNAME=$DBNAME" >> /vol/data/etc/environment
echo "export DBNAME=$DBNAME" >> /vol/data/etc/environment && \
rm -f /etc/environment && \
ln -s /vol/data/etc/environment /etc/environment
# change www-data's UID to the file owner UID
### RUN usermod --uid $FILESUID www-data && \

2
nextcloud/Initfile

@ -33,3 +33,5 @@ nc-occ config:app:set dav calendarSubscriptionRefreshRate --value PT1H
# finish configuration
nc-occ db:add-missing-indices
nc-occ maintenance:repair --include-expensive

10
nextcloud/scripts/clean.sh

@ -0,0 +1,10 @@
#!/bin/sh
for tag in $(podman images --filter reference=nextcloud --format='{{.Tag}}')
do
echo "Removing image nextcloud:$tag"
podman rmi -f nextcloud:$tag
done
podman unshare rm -rf $HOME/vol/nextcloud
Loading…
Cancel
Save