-
Notifications
You must be signed in to change notification settings - Fork 15
Description
Hello,
as to the following lines, the default pages (playground / wiki / welcome) will always be copied to the storage location upon start-up and will always reappear in the application.
Line 19 in 6b6abf2
| RUN /bin/bash /build-setup.sh |
Lines 32 to 33 in 6b6abf2
| mv /var/www/html/data /var/www/html/data.core | |
| ln -s /storage/data /var/www/html/data |
docker/root/dokuwiki-storagesetup.sh
Lines 7 to 8 in 6b6abf2
| mkdir -p /storage/data | |
| cp -r /var/www/html/data.core/. /storage/data # includes hidden files |
My question is: Am I missing something here? Or is this intended? If not, I'd open a pull request to implement my suggestion:
If /storage/data does not exist or is empty or env var COPY_DATA_CORE is set: - run "cp -r /var/www/html/data.core/. /storage/data"
else, do nothing.
or would it be required to check the storage directory for an old installation and then copy the data.core as well?
What do you think?
Thanks