Skip to content

Nextcloud sync #2945

@Thatoo

Description

@Thatoo

Bug Report

In my zola server, I set a webdav directory from nextcloud and then I created a symlink of it as the zola "content" folder.
Zola can access to it and it works fine if I write/edit files within the webdav directory from the zola server using nano for example.
However, if I add or edit files in nextcloud or, ideally, thanks to the nextcloud sync tool, zola doesn't take it into account. I should connect to zola server, and open the new file or the edited file with nano to make zola take it into account. I don't even need to save with nano, just opening it is enough. However, using the cat command isn't enough, I do see the modification made with the nextcloud sync tool though.

Environment

Zola version: 20.0

Expected Behavior

Editing a file within nextcoud, make the file updated in the webdav directory and available for zola so zola should take in account this update.

Current Behavior

See above the bug report

Step to reproduce

cd /var/www/zola
mkdir nextcloud
sudo -u zola  ln -s nextcloud/zola_site_web/content /var/www/zola/
sudo apt-get install davfs2
sudo usermod -aG davfs2 zola
sudo dpkg-reconfigure davfs2

and allow unprivileged user to use davfs2

sudo nano /etc/fstab

Add in it : https://NEXTCLOUD_URL/remote.php/dav/files/zola_folder/ /var/www/zola/nextcloud davfs user,uid=zola,gid=www-data,rw,auto 0 0
then reboot and you have the webdav folder mounted and available for zola.

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