From: Sadoon Albader Date: Sat, 19 Aug 2023 11:15:08 +0000 (+0300) Subject: fix sbuild install script to use SUDO_USER X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7a219a4f489baa614d8f8d47a191df381d421bcd;p=dev-env-setup.git fix sbuild install script to use SUDO_USER --- diff --git a/install-sbuild-apt-reqs b/install-sbuild-apt-reqs index d294941..4f6ac1b 100644 --- a/install-sbuild-apt-reqs +++ b/install-sbuild-apt-reqs @@ -18,7 +18,7 @@ apt-get update -y # not deviate unless you know what you're doing! apt-get install sbuild schroot debootstrap apt-cacher-ng devscripts piuparts -tee ~/.sbuildrc << EOF +tee /home/$SUDO_USER/.sbuildrc << EOF ############################################################################## # PACKAGE BUILD RELATED (additionally produce _source.changes) ############################################################################## @@ -53,8 +53,8 @@ $autopkgtest_opts = [ '--', 'schroot', '%r-%a-sbuild' ]; ############################################################################## 1; EOF -sbuild-adduser $LOGNAME -ln -sf ~/.sbuildrc /root/.sbuildrc +sbuild-adduser $SUDO_USER +ln -sf /home/SUDO_USER/.sbuildrc /root/.sbuildrc # end of lines from Debian Wiki page.