From bfa589840409ea623aee6bfeffdcab295d8fc3b8 Mon Sep 17 00:00:00 2001 From: fauno Date: Fri, 2 Oct 2020 11:55:21 -0300 Subject: [PATCH] habilitar el servicio condicionalmente soporte para distribuciones sin systemd --- lib/exec/install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/exec/install b/lib/exec/install index d44187a..fdfcea2 100755 --- a/lib/exec/install +++ b/lib/exec/install @@ -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 && \