From 5e9044eb4465f1b271ec90944049e8fca3478865 Mon Sep 17 00:00:00 2001 From: Kristaps Kaupe Date: Wed, 11 May 2022 21:42:25 +0300 Subject: [PATCH] Install Tor binaries under /usr/local for --docker-install --- install.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index d39d76a..e0cffb9 100755 --- a/install.sh +++ b/install.sh @@ -353,6 +353,13 @@ libsodium_install () tor_build () { + # jm_root will be empty for --docker-install, + # sys.prefix defaults to /usr/local + if [[ -n "$jm_root" ]]; then + tor_root="$jm_root" + else + tor_root="/usr/local" + fi $make uninstall $make distclean ./configure \ @@ -365,7 +372,7 @@ tor_build () --disable-asciidoc \ --disable-manpage \ --disable-html-manual \ - --prefix="${jm_root}" + --prefix="${tor_root}" $make if ! $make check; then return 1