aerospike / aerospike-client-c

Aerospike C Client
Other
98 stars 103 forks source link

debian dev package bug in postinst script #75

Closed jarda-manana closed 6 years ago

jarda-manana commented 7 years ago

in postinst script in debian aerospike-client-c-devel packege is this line: chown -R aerospike:aerospike /opt/aerospike

However the path does not exist if you haven't installed aerospike-client-c or aerospike-tools package.

BrianNichols commented 7 years ago

I had assumed that the previous lines in postinst would create the directory for you.

  if ! getent passwd aerospike >/dev/null; then
    useradd -r -d /opt/aerospike -g aerospike aerospike
  fi

I suppose if the aerospike user existed, but had a different home directory, then that would be a problem. To be safe, I will add the following before the chown in the next release.

mkdir -p /opt/aerospike
BrianNichols commented 6 years ago

C client 4.3.0 has been released.

https://www.aerospike.com/download/client/c/4.3.0