Linux Jails (sandboxes / containers) with Jailmaker

Inside the Jail:

  1. crontab -e
  2. press i
  3. paste 0 0 * * 0 pkg upgrade -y
  4. press ESC
  5. write :x and press enter
  6. verify you updated the crontab using crontab -l

This way every Sunday at 00 you will run pkg upgrade -y; use 0 0 * * 1 if you prefer Monday. Use && after each command if you want to have more than one ie 0 0 * * 0 pkg upgrade -y && git pull.

2 Likes