postinst for debian package `owncloud-client-cmd` does not touch `/etc/owncloud-client/sync-exclude.lst`
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
owncloud-client (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
## Summary
The file `/etc/owncloud-
## Expected behaviour
Installing `owncloud-
```bash
$ 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 cd60c2b88ac8583
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
```bash
$ 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-
$ sudo touch /etc/owncloud-
$ owncloudcmd -u USER -p PASSWORD ./ownCloud URL
# success
```
## Proposed changes
I would propose to add the following lines to `DEBIAN/postinst` in the package ... except when I unpack the .tar.xf for this package <https:/
My (limited) packaging experience has only dealt with packages that have a DEBIAN directory, so I am out of my depth.
If this package did have a `DEBIAN/postinst` I would propose the following addition:
```bash
# add to owncloud-
TGT=/etc/
[[ -e $TGT ]] || mkdir -p $(dirname $TGT) && touch $TGT
```
## Notes
Any pointers about how to navigate this kind of package and how to submit pull requests would be much appreciated.
This issue was originally reported [on github](https:/
best,
Sirio