Skip to content

Su invocation is not escaped properly for TS work [JIRA: TOOLS-167] #192

@macintux

Description

@macintux

When using TS packages, riak-admin is crippled for defining bucket types because of the need to use su to the riak user.

As seen below from sh -x, the JSON is not wrapped properly, and the shell complains.

exec su - riak -c '/usr/sbin/riak-admin bucket-type create testone \{\"props\":\{\"table_def\":\"CREATE TABLE testone (field1 varchar not null, field2 varchar not null, time timestamp not null, PRIMARY KEY((field1, field2, quantum(time, 15, s)), field1, field2, time))\"\}\}'

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions