Fix #215: impossible to enable NTP client

Regression introduced in ac0b0d5.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-11-21 19:24:05 +01:00
parent c38c8a46ce
commit 4c6d868627
+1 -1
View File
@@ -393,7 +393,7 @@ static int change_ntp(sr_session_ctx_t *session, uint32_t sub_id, const char *mo
(void)remove(CHRONY_PREV);
(void)rename(CHRONY_CONF, CHRONY_PREV);
(void)rename(CHRONY_NEXT, CHRONY_CONF);
if (srx_enabled(session, XPATH_BASE_"/ntp/enabled")) {
if (!srx_enabled(session, XPATH_BASE_"/ntp/enabled")) {
systemf("initctl -nbq disable chronyd");
return SR_ERR_OK;
}