[PATCH] Tor: fix permissions after updating, too

Peter Müller peter.mueller at ipfire.org
Mon Jun 10 20:02:00 BST 2019


Fixes #12088

Signed-off-by: Peter Müller <peter.mueller at ipfire.org>
Reported-by: Erik Kapfer <ummeegge at ipfire.org>
---
 lfs/tor                 | 2 +-
 src/paks/tor/install.sh | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/lfs/tor b/lfs/tor
index 1e8c3889d..d918910d4 100644
--- a/lfs/tor
+++ b/lfs/tor
@@ -32,7 +32,7 @@ DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = tor
-PAK_VER    = 39
+PAK_VER    = 40
 
 DEPS       = "libseccomp"
 
diff --git a/src/paks/tor/install.sh b/src/paks/tor/install.sh
index 268bccecd..1659871b6 100644
--- a/src/paks/tor/install.sh
+++ b/src/paks/tor/install.sh
@@ -32,9 +32,10 @@ if ! getent passwd tor; then
        useradd -u 119 -g tor -c "Tor daemon user" -d /var/empty -s /bin/false tor
 fi
 
+extract_files
+restore_backup ${NAME}
+
 # Adjust some folder permission for new UID/GID
 chown -R tor:tor /var/lib/tor /var/ipfire/tor
 
-extract_files
-restore_backup ${NAME}
 start_service --background ${NAME}
-- 
2.16.4


More information about the Development mailing list