From 66c326b6d65388e9f1003715ad9675505f01f9d2 Mon Sep 17 00:00:00 2001 From: davidovski Date: Fri, 3 Jun 2022 13:05:13 +0100 Subject: added porting from alpine linux --- repo/tor/tor.post-upgrade | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 repo/tor/tor.post-upgrade (limited to 'repo/tor/tor.post-upgrade') diff --git a/repo/tor/tor.post-upgrade b/repo/tor/tor.post-upgrade new file mode 100644 index 0000000..ff00aab --- /dev/null +++ b/repo/tor/tor.post-upgrade @@ -0,0 +1,21 @@ +#!/bin/sh + +ver_new="$1" +ver_old="$2" + +if [ "$(apk version -t "$ver_old" "0.2.8.7-r0")" = "<" ]; then + cat 1>&2 <<-EOF + * + * Tor runscript has been updated to start tor under unprivileged user "tor" + * by default. If it fails to start due to permissions error, then change owner + * of files in the DataDirectory (default is /var/lib/tor) to the tor user: + * chown -R tor /var/lib/tor + * + * If you need tor to bind a privileged port (e.g. 80), then add "User tor" + * to /etc/tor/torrc. Tor will be started under root, but then setuid to the + * tor user and drop privileges. + * + EOF +fi + +exit 0 -- cgit v1.2.1