Browse Source

new: [myc-update] clean ``/tmp`` of spurious ``/tmp/launch_opts``

master
Valentin Lab 4 days ago
parent
commit
ecd31fb1ae
  1. 7
      bin/myc-update

7
bin/myc-update

@ -139,4 +139,11 @@ for script in /etc/myc-update/post.d/*.sh; do
done
if [[ -n "$(find /tmp -maxdepth 1 -type f -wholename /tmp/launch_opts-\* -ctime +3 -print -quit)" ]]; then
Wrap -d "Cleaning spurious /tmp/launch_opts-*" <<EOF || exit 1
find /tmp -maxdepth 1 -type f -wholename /tmp/launch_opts-\* -ctime +3 -delete
EOF
fi
printf "Update finished ${GREEN}successfully${NORMAL} ${GRAY}(in %.2fs)${NORMAL}.\n" "$((SECONDS - start))"
Loading…
Cancel
Save