BookStackApp / system-cli

MIGRATED TO CODEBERG -- A simple CLI to manage BookStack instances
https://codeberg.org/bookstack/system-cli
MIT License
5 stars 0 forks source link

Restored file ownership #16

Open rinze24 opened 4 months ago

rinze24 commented 4 months ago
./bookstack-system-cli restore ~/my-backup.zip

Restore will use the command executor user group and will lead to file permission problem if the previous installation is in different user group. You will encounter:

File path /uploads/images/cover_book/date/file.jpg could not be uploaded to. Ensure it is writable to the server or It will say file uploaded but not display the cover image.

Workaround is to chown -R user:group /path/to/bookstack

In my setup i use TurnkeyBookstack for installation, they use www-data:www-data user:group. I use root to restore my bookstack which leads to above situation.