]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
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 1e8c3889d14ebaa43da4aceb60f6ab39fad6f84a..d918910d4617bb8255d144c2182a7c84288dcc28 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 268bccecddf6589e6697931b9db263b21f0c3876..1659871b65be6befe7557400d0feea5422e08d34 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}