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"