From 4eff4c12080cb1a71433228b87275d2d2109b23c Mon Sep 17 00:00:00 2001 From: openoms Date: Tue, 12 Sep 2023 22:29:45 +0200 Subject: [PATCH] build: switch to runuser in buid_joininbox.sh --- build_joininbox.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build_joininbox.sh b/build_joininbox.sh index 47c7626..2a1d473 100644 --- a/build_joininbox.sh +++ b/build_joininbox.sh @@ -607,7 +607,7 @@ echo "#########################" echo "# Download Bitcoin Core" echo "#########################" echo -sudo -u joinmarket /home/joinmarket/install.bitcoincore.sh downloadCoreOnly || exit 1 +runuser joinmarket -c "/home/joinmarket/install.bitcoincore.sh downloadCoreOnly" || exit 1 echo echo "######################" @@ -623,7 +623,7 @@ if [ "$4" = "without-qt" ]; then qtgui="false" sed -i "s/^qtgui=.*/qtgui=false/g" /home/joinmarket/joinin.conf fi -sudo -u joinmarket /home/joinmarket/install.joinmarket.sh -i install -q $qtgui || exit 1 +runuser joinmarket -c "/home/joinmarket/install.joinmarket.sh -i install -q $qtgui" || exit 1 echo "###################" echo "# bootstrap.service"