habilitar el servicio condicionalmente

soporte para distribuciones sin systemd
This commit is contained in:
fauno 2020-10-02 11:55:21 -03:00
parent c314798f8a
commit bfa5898404

View File

@ -68,7 +68,8 @@ ${sudo} find "${TINC}/scripts" -type f -exec chmod 755 {} \;
${sudo} chmod 600 "${TINC}/rsa_key.priv"
# Habilitar tinc en el sistema
${sudo} systemctl enable --now tinc.service tinc@${NETWORK}.service
type systemctl &>/dev/null \
&& ${sudo} systemctl enable --now tinc.service tinc@${NETWORK}.service
# Instalar logrotate
test -d /etc/logrotate.d && \