From 632893abf5c7bf935d866462a107ed1eef1747b3 Mon Sep 17 00:00:00 2001 From: hagbard Date: Mon, 21 Jan 2019 12:55:32 -0800 Subject: Fix: T1178 - Scheduled script breaks ability to modify configuration --- debian/changelog | 6 ++++++ src/conf_mode/task_scheduler.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 783080a92..b8e9022c0 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +vyos-1x (1.2.0-10) unstable; urgency=low + + * T1178: Scheduled script breaks ability to modify configuration + + -- hagbard Mon, 21 Jan 2019 12:54:45 -0800 + vyos-1x (1.2.0-9) unstable; urgency=low * T1168: Upgrade: 1,1,7 -> 1.2.0-epa2 diff --git a/src/conf_mode/task_scheduler.py b/src/conf_mode/task_scheduler.py index 285afe2b5..0391d3edb 100755 --- a/src/conf_mode/task_scheduler.py +++ b/src/conf_mode/task_scheduler.py @@ -27,7 +27,7 @@ from vyos import ConfigError crontab_file = "/etc/cron.d/vyos-crontab" -def format_task(minute="*", hour="*", day="*", dayofweek="*", month="*", user="root", rawspec=None, command=""): +def format_task(minute="*", hour="*", day="*", dayofweek="*", month="*", user="vyos", rawspec=None, command=""): fmt_full = "{minute} {hour} {day} {month} {dayofweek} {user} {command}\n" fmt_raw = "{spec} {user} {command}\n" -- cgit v1.2.3