add consul user to script

main
Ayush Mukherjee 3 years ago
parent 8fe9dc7517
commit 68c367e76a

@ -19,6 +19,9 @@ elif [ "$#" -eq 1 ] && [ "$1" == "-h" ]; then
exit 1 exit 1
fi fi
# create consul user
useradd --system --home /etc/consul.d --shell /bin/false consul
# create directory if doesn't exist and set permissions # create directory if doesn't exist and set permissions
mkdir -p /etc/consul.d/ && chown -R consul:consul /etc/consul.d/ mkdir -p /etc/consul.d/ && chown -R consul:consul /etc/consul.d/

Loading…
Cancel
Save