Skip to content

Storage setup script will copy default pages upon start-up #32

@renat1sakenov

Description

@renat1sakenov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions