[MDEV-13032] galera_new_cluster is not POSIX-compliant Created: 2017-06-07  Updated: 2017-06-11  Resolved: 2017-06-11

Status: Closed
Project: MariaDB Server
Component/s: Admin statements, Galera
Affects Version/s: 10.1.24, 10.2.6
Fix Version/s: 10.1.25, 10.2.7

Type: Bug Priority: Major
Reporter: Marcel da Silva Assignee: Daniel Black
Resolution: Fixed Votes: 0
Labels: contribution, foundation, patch
Environment:

Ubuntu 16.04



 Description   

The standard shell in Ubuntu is dash, but the bootstrap command galera_new_cluster is not POSIX-compliant. galera_new_cluster's shebang looks like:

#!/bin/sh

which is a link to dash on ubuntu:

root@galera-training-0:~# ls -ln /bin/sh
lrwxrwxrwx 1 0 0 4 Feb 16 08:37 /bin/sh -> dash

this results in this error:

root@galera-node-0:~# galera_new_cluster
/usr/bin/galera_new_cluster: 8: [: unexpected operator



 Comments   
Comment by Daniel Black [ 2017-06-08 ]

Apologies - fixed as per https://github.com/MariaDB/server/pull/404

Generated at Thu Feb 08 08:02:22 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.