From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter =?utf-8?q?M=C3=BCller?= To: development@lists.ipfire.org Subject: [PATCH] Tor: fix permissions after updating, too Date: Mon, 10 Jun 2019 19:02:00 +0000 Message-ID: <699c9e88-49ae-17e2-6610-af83de23b581@ipfire.org> In-Reply-To: <45B7E08D-B308-46DD-9C85-1CCC8E55B173@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0171296072973596599==" List-Id: --===============0171296072973596599== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Fixes #12088 Signed-off-by: Peter M=C3=BCller Reported-by: Erik Kapfer --- 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 =3D $(URL_IPFIRE) DIR_APP =3D $(DIR_SRC)/$(THISAPP) TARGET =3D $(DIR_INFO)/$(THISAPP) PROG =3D tor -PAK_VER =3D 39 +PAK_VER =3D 40 =20 DEPS =3D "libseccomp" =20 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/fals= e tor fi =20 +extract_files +restore_backup ${NAME} + # Adjust some folder permission for new UID/GID chown -R tor:tor /var/lib/tor /var/ipfire/tor =20 -extract_files -restore_backup ${NAME} start_service --background ${NAME} --=20 2.16.4 --===============0171296072973596599==--