[tor-commits] [community/master] Create child page with BSD auto update instructions

emmapeel at torproject.org emmapeel at torproject.org
Thu Aug 29 12:47:04 UTC 2019


commit 3fc8f0efe60b71920863fe9d6ced516c2940110b
Author: gus <gus at torproject.org>
Date:   Thu Aug 29 07:12:44 2019 -0400

    Create child page with BSD auto update instructions
---
 .../guard/freebsd/updates/contents.lr              | 45 ++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/content/relay-operations/technical-setup/guard/freebsd/updates/contents.lr b/content/relay-operations/technical-setup/guard/freebsd/updates/contents.lr
new file mode 100644
index 0000000..bc1dd05
--- /dev/null
+++ b/content/relay-operations/technical-setup/guard/freebsd/updates/contents.lr
@@ -0,0 +1,45 @@
+_model: page
+---
+title: Automatic Updates on BSD*
+---
+_hidden: no
+---
+_slug: updates
+---
+body:
+
+# DragonFlyBSD / FreeBSD / HardenedBSD
+
+**NOTE:** _all steps documented on this page are considering that your machine/server/system only provides Tor relay services. please be aware that other services running might stop/restart during the upgrade._
+
+#1. Create the script to perform the updates. 
+
+Let's use `/root/pkg_upgrade.sh` 
+
+```
+#!/usr/bin/env sh
+PATH="/bin:/usr/bin:/sbin:/usr/sbin"
+RAND=$(jot -r 1 300)
+sleep ${RAND}
+env AUTOCLEAN=YES ASSUME_ALWAYS_YES=YES HANDLE_RC_SCRIPTS=YES pkg upgrade
+```
+
+#2. Schedule the job to run. 
+
+```
+# echo "0 0 * * * root /bin/sh /root/pkg_upgrade.sh >/dev/null" >> /etc/crontab
+```
+
+#3. Restart cron's service. 
+
+```
+# service cron restart
+```
+---
+html: two-columns-page.html
+---
+section: relay operations
+---
+section_id: relay-operations
+---
+key: 1





More information about the tor-commits mailing list