only delete a file if it is present

This commit is contained in:
rene
2022-03-07 14:34:32 +01:00
parent 97972ef448
commit 985ba7c42f

View File

@@ -24,6 +24,6 @@ awk '{u=$2+$4; t=$2+$4+$5; if (NR==1){uuu1=u; ttt1=t;} else print ($2+$4-u1) * 1
#memory
free -m | awk 'NR==2{printf "%s", $3 }' > /usr/share/jitsi-meet/memory.txt
# statistic
rm /usr/share/jitsi-meet/stats.json
[[ -f /usr/share/jitsi-meet/stats.json ]] && rm /usr/share/jitsi-meet/stats.json
curl -s http://127.0.0.1:8080/colibri/stats >> /usr/share/jitsi-meet/stats.json