Skip to content

Commit

Permalink
docker: fix datadir path
Browse files Browse the repository at this point in the history
Signed-off-by: nachoparker <[email protected]>
  • Loading branch information
nachoparker committed Jan 19, 2021
1 parent afa39fb commit 84ccf94
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 29 deletions.
4 changes: 2 additions & 2 deletions docker/nextcloud/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ ln -s /data-ro/nextcloud /var/www/nextcloud; \
# stop mysqld
mysqladmin -u root shutdown; \

# package cleanup
# package cleanup
apt-get autoremove -y; \
apt-get clean; \
find /var/lib/apt/lists -type f | xargs rm; \
Expand All @@ -44,7 +44,7 @@ rm -f /var/log/alternatives.log /var/log/apt/*; \
# specific cleanup
apt-get purge -y wget ca-certificates; \
rm /nc-nextcloud.sh /usr/local/etc/ncp-config.d/nc-nextcloud.cfg; \
rm /.ncp-image;
rm /.ncp-image;

COPY docker/nextcloud/020nextcloud /etc/services-enabled.d/
COPY bin/ncp-provisioning.sh /usr/local/bin/
1 change: 1 addition & 0 deletions docker/nextcloudpi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ install_app ncp.sh; \

mv /usr/local/etc/ncp-config.d/nc-init-copy.cfg /usr/local/etc/ncp-config.d/nc-init.cfg; \
run_app_unsafe bin/ncp/CONFIG/nc-init.sh; \
sed -i 's|data-ro|data|' /data-ro/nextcloud/config/config.php; \

# fix default paths
sed -i 's|/media/USBdrive|/data/backups|' /usr/local/etc/ncp-config.d/nc-backup.cfg; \
Expand Down
27 changes: 0 additions & 27 deletions ncp-web/ncp-wait-msg.php

This file was deleted.

2 changes: 2 additions & 0 deletions updates/1.37.0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ rm "${crontab_tmp}"

# docker images only
[[ -f /.docker-image ]] && {
# fix build bug on v1.32.0
sed -i 's|data-ro|data|' /data/nextcloud/config/config.php
:
}

Expand Down

0 comments on commit 84ccf94

Please sign in to comment.