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.
|
RUN /bin/bash /build-setup.sh |
|
mv /var/www/html/data /var/www/html/data.core |
|
ln -s /storage/data /var/www/html/data |
|
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
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.
docker/Dockerfile
Line 19 in 6b6abf2
docker/root/build-setup.sh
Lines 32 to 33 in 6b6abf2
docker/root/dokuwiki-storagesetup.sh
Lines 7 to 8 in 6b6abf2
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