open-consul/.release/linux/postinstall

11 lines
203 B
Plaintext
Raw Normal View History

#!/bin/bash
mkdir -p /opt/consul
chown -R consul:consul /opt/consul
chown -R consul:consul /etc/consul.d
if [ -d /run/systemd/system ]; then
systemctl --system daemon-reload >/dev/null || true
fi