managing systemd-timesyncd in conf_ntp, make use of die instead of exit
This commit is contained in:
@@ -1,9 +1,16 @@
|
||||
# NTP
|
||||
|
||||
export VER_conf_ntp="0.0.2"
|
||||
export VER_conf_ntp="0.0.3"
|
||||
|
||||
conf_ntp()
|
||||
{
|
||||
if [[ $(pidof systemd) ]]; then
|
||||
prnt I "Désactivation de Systemd-timesyncd..."
|
||||
systemctl disable systemd-timesyncd || true
|
||||
fi
|
||||
|
||||
prnt I "Installation du démon ntp..."
|
||||
pkginst ntp
|
||||
prnt I "Arrêt du service ntp..."
|
||||
svc_stop ntp
|
||||
|
||||
@@ -28,7 +35,7 @@ precheck_conf_ntp()
|
||||
{
|
||||
if [[ ! $NTPSERVERS ]]; then
|
||||
prnt E "Pas de serveur NTP configuré !"
|
||||
exit 1
|
||||
die 5
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user