Add test scripts and backup-buttons script

This commit is contained in:
Pothi Kalimuthu 2022-11-10 12:35:50 +05:30
parent bf07a55ca5
commit a1a0489377
No known key found for this signature in database
GPG key ID: 08202A469C2D0E06
6 changed files with 79 additions and 0 deletions

12
test-snippets/test-log Normal file
View file

@ -0,0 +1,12 @@
# Email the generic-log when it reaches the threshold!
:global adminEmail
:local emailStatus
:local logFile "genericLog.1.txt"
:local fileContent "temp"
:do {
if ( [/file get "flash/$logFile" ] != "no such item" ) do={ :log info "Log file found!" }
} on-error={ :log warning "Log file isn't big enough!" }
:put $fileContent