wiki:TorRelayGuide/BSDUpdates

FreeBSD and HardenedBSD

  1. Create shell script. In this example, we'll place it in /root/autoupdate_tor.sh with the following content
    #!/bin/sh
    
    PKG="/usr/local/sbin/pkg"
    
    /usr/bin/env \
        ASSUME_ALWAYS_YES="YES" \
        HANDLE_RC_SCRIPTS="YES" \
        ${PKG} upgrade
    
  2. Set the script as executable:
    # chmod 755 /root/autoupdate_tor.sh
    
  3. Tell cron to run the script once per day:
    # echo '0 0 * * * root /root/autoupdate_tor.sh' >> /etc/crontab
    
Last modified 5 months ago Last modified on Feb 25, 2018, 11:12:33 PM