From bf43cb50ffff9c86bcd8551cef864f4ba4d67472 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kr=C3=BCger?= Date: Fri, 17 Dec 2021 13:12:39 +0100 Subject: [PATCH] manman-sync: fix setting cron --- .../gluon-manman-sync/luasrc/lib/gluon/upgrade/500-manman-sync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/gluon-manman-sync/luasrc/lib/gluon/upgrade/500-manman-sync b/package/gluon-manman-sync/luasrc/lib/gluon/upgrade/500-manman-sync index 1aac48cf..c80df65f 100755 --- a/package/gluon-manman-sync/luasrc/lib/gluon/upgrade/500-manman-sync +++ b/package/gluon-manman-sync/luasrc/lib/gluon/upgrade/500-manman-sync @@ -15,7 +15,7 @@ local minute = math.random(0, 59) local f = io.open('/usr/lib/micron.d/manman-sync', 'w') -- Only setup cron if enabled -- Write file regardless to clear old cron -if uci:get_bool('gluon', 'manman_sync', 'enabled') then +if uci:get_bool('gluon-manman-sync', 'sync', 'enabled') then f:write(string.format('%i * * * * /usr/bin/manman-sync\n', minute)) end f:close()