open-consul/.release/linux/postinstall
2021-10-26 23:21:04 -07:00

11 lines
203 B
Bash

#!/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