Tor: fix permissions after updating, too
authorPeter Müller <peter.mueller@ipfire.org>
Mon, 10 Jun 2019 19:02:00 +0000 (19:02 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 12 Jun 2019 04:45:42 +0000 (05:45 +0100)
Fixes #12088

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Reported-by: Erik Kapfer <ummeegge@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/tor
src/paks/tor/install.sh

diff --git a/lfs/tor b/lfs/tor
index 1e8c388..d918910 100644 (file)
--- 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"
 
index 268bcce..1659871 100644 (file)
@@ -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}