habilitar el servicio condicionalmente
soporte para distribuciones sin systemd
This commit is contained in:
parent
c314798f8a
commit
bfa5898404
@ -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 && \
|
||||
|
Loading…
x
Reference in New Issue
Block a user