Right, even if it works without shell in latest runuser, with older one it fails as account unavailable.
For the second part,
- OPTIONS="-d -a gcomm://$ADDRESS"
+ if ! grep -q ':' <<< $ADDRESS; then
+ OPTIONS="-d -a gcomm://$ADDRESS:$GALERA_PORT"
+ else
+ OPTIONS="-d -a gcomm://$ADDRESS"
+ fi
+
Right, even if it works without shell in latest runuser, with older one it fails as account unavailable.
For the second part,
- OPTIONS="-d -a gcomm://$ADDRESS" /$ADDRESS: $GALERA_ PORT"
+ if ! grep -q ':' <<< $ADDRESS; then
+ OPTIONS="-d -a gcomm:/
+ else
+ OPTIONS="-d -a gcomm://$ADDRESS"
+ fi
+
works better