summaryrefslogtreecommitdiff
path: root/src/conf_mode/ntp.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-05-19 22:32:22 +0200
committerGitHub <noreply@github.com>2020-05-19 22:32:22 +0200
commitb708a375010c7240d11412d92f8552dbba2abdc0 (patch)
tree01428d83fe5375545afee1f6359d35e0ab7ad2ba /src/conf_mode/ntp.py
parentb645e28edb6e92fe13e781c0d29853aebaceb711 (diff)
parent43dd945c5a45c86c491892f30546d0179751bf4a (diff)
downloadvyos-1x-b708a375010c7240d11412d92f8552dbba2abdc0.tar.gz
vyos-1x-b708a375010c7240d11412d92f8552dbba2abdc0.zip
Merge pull request #414 from thomas-mangin/T2467
util: T2467: automatically add sudo to known commands
Diffstat (limited to 'src/conf_mode/ntp.py')
-rwxr-xr-xsrc/conf_mode/ntp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/ntp.py b/src/conf_mode/ntp.py
index 6d32f7fd6..85f60293d 100755
--- a/src/conf_mode/ntp.py
+++ b/src/conf_mode/ntp.py
@@ -103,10 +103,10 @@ def generate(ntp):
def apply(ntp):
if ntp is not None:
- call('sudo systemctl restart ntp.service')
+ call('systemctl restart ntp.service')
else:
# NTP support is removed in the commit
- call('sudo systemctl stop ntp.service')
+ call('systemctl stop ntp.service')
os.unlink(config_file)
return None