My apologies if this is not the right place to post this issue, I did a GitHub search for org:owncloud owncloud-client-cmd and while I can't find seem to find a matching source file, issues mentioning it are against this repo.
Also, I would post a pull request directly, but I can't seem to find the .deb package tree that builds this. See my proposed changes below.
Expected behaviour
Installing owncloud-client-cmd on a vanilla Ubuntu Server image:
$ uname -r
4.15.0-38-generic
$ cat /etc/issue
Ubuntu 18.04.2 LTS \n \l
$ sudo apt-get install owncloud-client-cmd
# ... output elided for brevity
$ owncloudcmd --version
ownCloud version 2.4.1
Git revision cd60c2b88ac858339637575f124c58d88b42e78c
Using Qt 5.9.5, built against Qt 5.9.4
Using 'OpenSSL 1.1.0g 2 Nov 2017'
$ mkdir ./ownCloud
$ owncloudcmd -u USER -p PASSWORD ./ownCloud URL
# sync succeeds
$
Actual behaviour (failure) and manual fix
$ sudo apt-get install owncloud-client-cmd
$ mkdir ./ownCloud
$ owncloudcmd -u USER -p PASSWORD ./ownCloud URL
# ... output elided for brevity
[ fatal default ]: Cannot load system exclude list or list supplied via --exclude
$ sudo mkdir -p /etc/owncloud-client
$ sudo touch /etc/owncloud-client/sync-exclude.lst
$ owncloudcmd -u USER -p PASSWORD ./ownCloud URL
# success
Proposed changes
I propose to add the following lines to DEBIAN/postinst in the .deb package.
Apologies I searched for a DEBIAN directory being maintained, but perhaps this is being autogenerated somewhere? Maybe by CMake?
I did some searching around the project sources but didn't seem to find a clue.
# add to owncloud-client-cmd/DEBIAN/postinst
TGT=/etc/owncloud-client/sync-exclude.lst
[[ -e $TGT ]] || mkdir -p $(dirname $TGT) && touch $TGT
My apologies if this is not the right place to post this issue, I did a GitHub search for
org:owncloud owncloud-client-cmdand while I can't find seem to find a matching source file, issues mentioning it are against this repo.Also, I would post a pull request directly, but I can't seem to find the .deb package tree that builds this. See my proposed changes below.
Expected behaviour
Installing owncloud-client-cmd on a vanilla Ubuntu Server image:
Actual behaviour (failure) and manual fix
Proposed changes
I propose to add the following lines to
DEBIAN/postinstin the .deb package.Apologies I searched for a DEBIAN directory being maintained, but perhaps this is being autogenerated somewhere? Maybe by CMake?
I did some searching around the project sources but didn't seem to find a clue.