[PATCH] Tor: fix permissions after updating, too

Peter Müller peter.mueller at ipfire.org
Wed Jun 12 14:57:00 BST 2019


Hello,

could somebody please merge this patch _before_ closing Core Update 133?

Thanks, and best regards,
Peter Müller


> 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}
> 

-- 
The road to Hades is easy to travel.
	-- Bion of Borysthenes


More information about the Development mailing list