upload-backup: remove file after upload

This commit is contained in:
Christian Hesse 2021-06-16 14:44:28 +02:00
parent c60c96e32a
commit 1e1b98b161

View file

@ -68,6 +68,8 @@ $WaitFullyConnected;
:set BackupFile "failed"; :set BackupFile "failed";
:set Failed 1; :set Failed 1;
} }
/ file remove ($FilePath . ".backup");
} }
# create configuration export # create configuration export
@ -84,6 +86,8 @@ $WaitFullyConnected;
:set ConfigFile "failed"; :set ConfigFile "failed";
:set Failed 1; :set Failed 1;
} }
/ file remove ($FilePath . ".rsc");
} }
$SendNotification2 ({ origin=$0; \ $SendNotification2 ({ origin=$0; \