WND in the Appliance
Introduction
Here are the steps to configure WND in the Appliance.
Windows Network Drive is available only in the Enterprise Edition of ownCloud. |
You will need both of the following described steps for each share. |
The steps need to be done in / on the docker host (appliance virtual machine) and not inside the docker container |
WND Listener
Create a service following the instructions below that checks the share for changes:
-
For each WND mount point distinguished by a SERVER - SHARE pair,
-
place one copy of a file with following content under
/etc/systemd/system/owncloud-wnd-listen-SERVER-SHARE.service
-
replacing the all upper case words
SERVER
,SHARE
,USER
andPASSWORD
-
in both, the filename and in the contents below with their respective values.
Take care to also adjust the paths inWorkingDirectory
andExecStart
according to your installation.[Unit] Description=ownCloud WND Listener for SERVER SHARE After=docker.service Requires=docker.service [Service] User=root Group=root WorkingDirectory=/root ExecStart=/usr/bin/univention-app shell owncloud occ wnd:listen -vvv SERVER SHARE USER PASSWORD Type=simple StandardOutput=journal StandardError=journal SyslogIdentifier=%n KillMode=process RestartSec=1 Restart=always [Install] WantedBy=multi-user.target
-
-
Run once for each created file the following commands:
sudo systemctl enable owncloud-wnd-listen-SERVER-SHARE.service sudo systemctl start owncloud-wnd-listen-SERVER-SHARE.service
WND Process Queue
Create or add a crontab
file in /etc/cron.d/oc-wnd-process-queue
.
-
Make a
crontab
entry to run a script iterating over allSERVER SHARE
pairs with an appropriateocc wnd:process-queue
command. The commands must be strictly sequential. This can be done by usingflock -n
and tuning the-c
parameter ofocc wnd:process-queue
0 */15 * * * root /usr/bin/univention-app shell owncloud occ wnd:process-queue -vvv SERVER SHARE
Further Reading
Please see also:
-
The ownCloud forum and the
-
Windows Network Drive Configuration documentation.