From 420986fdfcaee163da10e5e8c6376b6e178c025c Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 23 Jun 2021 00:43:42 +0200 Subject: packages-update: use 'provides' to find backup scripts --- packages-update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages-update') diff --git a/packages-update b/packages-update index bb138d7..627a7c4 100644 --- a/packages-update +++ b/packages-update @@ -52,7 +52,7 @@ $ScriptLock $0; } } -:foreach Script in=[ / system script find where name~"^(cloud|email|upload)-backup\$" ] do={ +:foreach Script in=[ / system script find where source~"\n# provides: backup-script\n" ] do={ :local ScriptName [ / system script get $Script name ]; :do { $LogPrintExit2 info $0 ("Running backup script " . $ScriptName . " before update.") false; -- cgit v1.2.3-70-g09d2