1 2 3 4 5 6 7
#!/bin/sh # Create consul group and user addgroup -S consul 2> /dev/null adduser -h /var/consul -s /sbin/nologin -G consul -S -D consul 2> /dev/null exit 0