Community discussions

Member Candidate
Member Candidate
Topic Author
Posts: 236
Joined: Mon Jun 22, 2015 9:22 am

Need to fix this update script:

Thu Sep 27, 2018 10:26 am

As described in viewtopic.php?f=7&t=131039 I'm using this line to downlad new npk files into CAPs manager to be available to APs update (as "require same version") :
/tool fetch address="" mode=https src-path="/routeros/$newVer/routeros-mipsbe-$newVer.npk" dst-path="/apdir"

The problem is the /apdir directory keeps filling with all old no more used routeros-mipsbe-xxxxxx.npk files (10MB each) , resulting in no more space left .

As I'm not expert in scripting, how can I modify script to delete old npk file when a new one has been downloaded ? (code example)

Thank you

Who is online

Users browsing this forum: No registered users and 11 guests